documentation

Patient Vault v3 API

Custom Fields / Definition / Type

/v3/custom-data/definition/type/{typeKey} endpoint reference.

URL: https://demo.1health.io/api/v3/custom-data/definition/type

APIs for defining custom fields on a business object class. Supports creating, replacing, partially updating, and retiring definitions. The tenant and application are resolved from the authenticated context; storage slots are allocated automatically.

Endpoints

EndpointMethodDescription
/v3/custom-data/definition/type/{typeKey}GETList custom data definitions for a business object class

GET/v3/custom-data/definition/type/{typeKey}

List custom data definitions for a business object class

Overview

Overview: Returns all custom data definitions (each with its fields) visible to the caller for the given business object class, within the authenticated tenant and application context.

Behavior & Use Cases:

  • Results are scoped to the authenticated tenant and application
  • Only client-facing metadata is returned; the physical storage slot is not exposed
  • typeKey must reference an existing business object class
  • Returns an empty list when the class exists but has no custom data definitions

Important Notes:

  • Requires authentication; the target application is taken from the authenticated application context or from an explicit appId (see the appId parameter)

Authorization

Bearer JWT required. See the authentication guide.

Path Parameters

ParameterTypeRequiredDescription
typeKeyStringYesThe key of the business object class whose custom data definitions should be returned.

Query Parameters

ParameterTypeRequiredDefaultDescription
appIdLongNoExternal application the custom data belongs to. Optional; when omitted, the application is resolved from the authenticated context. Custom data definitions belong to the application's owner tenant: creating, updating or deleting them requires being a system administrator of that owner tenant, while reading them is allowed for the owner and any tenant the application is visible to (public, or explicitly allowed for a private application). A request with neither an application context nor an explicit appId is rejected.

Responses

200 OK

Custom data definitions retrieved successfully.

DTO: CustomDataDefinitionListResponseDTO

{
  "definitions": [
    {}
  ]
}
FieldTypeNullableDescription
definitionsListNoThe custom data definitions visible to the caller for the requested business object class.

400 Bad Request

Invalid request. Possible causes: • typeKey does not reference an existing business object class • Missing external application context

401 Unauthorized

Not authenticated — valid session required.

Example

curl -X GET "https://demo.1health.io/api/v3/custom-data/definition/type/example-value" \
  -H "Authorization: Bearer $TOKEN"

Parent: https://agents.1health.io/public/demo/api/v3/custom-data/definition/agents.md · Site guide: https://agents.1health.io/public/demo/api/agents.md