documentation

Patient Vault v3 API

Custom Fields / Definition / Statistics

/v3/custom-data/definition/{id}/statistics endpoint reference.

URL: https://demo.1health.io/api/v3/custom-data/definition/{id}/statistics

No description available in the API specification.

Endpoints

EndpointMethodDescription
/v3/custom-data/definition/{id}/statisticsGETGet statistics for a custom data definition

GET/v3/custom-data/definition/{id}/statistics

Get statistics for a custom data definition

Overview

Returns statistics for a single custom data definition: how many instances hold a value for each of its fields, the definition's row count, and slot usage per field-type family.

Authorization

Bearer JWT required. See the authentication guide.

Path Parameters

ParameterTypeRequiredDescription
idLongYesThe ID of the custom data definition.

Query Parameters

ParameterTypeRequiredDefaultDescription
appIdLongNoExternal application the custom data belongs to. Optional; when omitted, the application is resolved from the authenticated context. Reading 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

Definition statistics retrieved successfully.

DTO: CustomDataDefinitionStatsDTO

{
  "definitionId": 1001,
  "boClassId": 1001,
  "rowCount": 1001,
  "fields": [
    {}
  ],
  "slots": [
    {}
  ]
}
FieldTypeNullableDescription
definitionIdLongYesCustom data definition instance ID.
boClassIdLongYesID of the business object class the definition is attached to.
rowCountlongNoNumber of custom_data rows for this definition across all tenants of the application.
fieldsListYesPer-field value counts for the definition's fields.
slotsListYesUsed and remaining slots per field-type family.

400 Bad Request

Invalid request. Missing external application context.

401 Unauthorized

Not authenticated — valid session required.

404 Not Found

Custom data definition not found.

Example

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

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