Skip to content

AHDS Store API (1.0)

Animal Health Data Store - V1 API Documentation

Overview
Languages
Servers
Mock server

https://docs.heydonto.com/_mock/apis/animal-health/openapi/

Local Development

http://localhost:8083/

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Request

Creates a new Template record. Template resource in the Animal Health Data Store

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
additionalInformationobject

Additional template-specific configuration or metadata.

extensionsobject

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the template is active and can be used.

namestringrequired

Human-readable name of the template.

templateIdstringrequired

Canonical unique identifier for the template.

Example: "123e4567-e89b-12d3-a456-426614174000"
templateSubtypestring or null

Optional subtype of the template (e.g., reminder, discharge).

templateTypestringrequired

High-level type of the template (e.g., email, sms, document).

curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/template' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "additionalInformation": {},
    "extensions": {},
    "isActive": true,
    "name": "string",
    "templateId": "123e4567-e89b-12d3-a456-426614174000",
    "templateSubtype": "string",
    "templateType": "string"
  }'

Responses

Template created successfully

Bodyapplication/json
additionalInformationobjectrequired

Additional template-specific configuration or metadata.

createdAtstring(date-time)required

Timestamp when the template was created.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the template is active and can be used.

namestringrequired

Human-readable name of the template.

templateIdstringrequired

Canonical unique identifier for the template.

Example: "123e4567-e89b-12d3-a456-426614174000"
templateSubtypestring or nullrequired

Optional subtype of the template (e.g., reminder, discharge).

templateTypestringrequired

High-level type of the template (e.g., email, sms, document).

updatedAtstring(date-time)required

Timestamp when the template was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalInformation": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "templateId": "123e4567-e89b-12d3-a456-426614174000", "templateSubtype": "string", "templateType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Templates for the specified site. Supports filtering and sorting.

Security
bearer
Path
siteIdnumberrequired

Site identifier

Query
pagenumber>= 0

Page number (0-indexed)

Default 0
pageSizenumber[ 1 .. 100 ]

Number of items per page

Default 10
sortBystring

Field to sort by

Enum"createdAt""updatedAt""name""templateSubtype""templateType"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
isActiveboolean

Whether the template is active and can be used.

namestring

Human-readable name of the template.

templateSubtypestring

Optional subtype of the template (e.g., reminder, discharge).

templateTypestring

High-level type of the template (e.g., email, sms, document).

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/template?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&isActive=true&name=string&templateSubtype=string&templateType=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Templates

Request

Returns a single Template by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

templateIdstringrequired

Template unique identifier (UUID)

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/template/{templateId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Template found

Bodyapplication/json
additionalInformationobjectrequired

Additional template-specific configuration or metadata.

createdAtstring(date-time)required

Timestamp when the template was created.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the template is active and can be used.

namestringrequired

Human-readable name of the template.

templateIdstringrequired

Canonical unique identifier for the template.

Example: "123e4567-e89b-12d3-a456-426614174000"
templateSubtypestring or nullrequired

Optional subtype of the template (e.g., reminder, discharge).

templateTypestringrequired

High-level type of the template (e.g., email, sms, document).

updatedAtstring(date-time)required

Timestamp when the template was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalInformation": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "templateId": "123e4567-e89b-12d3-a456-426614174000", "templateSubtype": "string", "templateType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Partially updates an existing Template. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

templateIdstringrequired

Template unique identifier (UUID)

Bodyapplication/jsonrequired
additionalInformationobject

Additional template-specific configuration or metadata.

extensionsobject

Vendor- or practice-specific extensions.

isActiveboolean

Whether the template is active and can be used.

namestring

Human-readable name of the template.

templateSubtypestring or null

Optional subtype of the template (e.g., reminder, discharge).

templateTypestring

High-level type of the template (e.g., email, sms, document).

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/template/{templateId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "additionalInformation": {},
    "extensions": {},
    "isActive": true,
    "name": "string",
    "templateSubtype": "string",
    "templateType": "string"
  }'

Responses

Template updated successfully

Bodyapplication/json
additionalInformationobjectrequired

Additional template-specific configuration or metadata.

createdAtstring(date-time)required

Timestamp when the template was created.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the template is active and can be used.

namestringrequired

Human-readable name of the template.

templateIdstringrequired

Canonical unique identifier for the template.

Example: "123e4567-e89b-12d3-a456-426614174000"
templateSubtypestring or nullrequired

Optional subtype of the template (e.g., reminder, discharge).

templateTypestringrequired

High-level type of the template (e.g., email, sms, document).

updatedAtstring(date-time)required

Timestamp when the template was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalInformation": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "templateId": "123e4567-e89b-12d3-a456-426614174000", "templateSubtype": "string", "templateType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Fully replaces an existing Template. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

templateIdstringrequired

Template unique identifier (UUID)

Bodyapplication/jsonrequired
additionalInformationobjectrequired

Additional template-specific configuration or metadata.

extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the template is active and can be used.

namestringrequired

Human-readable name of the template.

templateSubtypestring or null

Optional subtype of the template (e.g., reminder, discharge).

templateTypestringrequired

High-level type of the template (e.g., email, sms, document).

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/template/{templateId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "additionalInformation": {},
    "extensions": {},
    "isActive": true,
    "name": "string",
    "templateSubtype": "string",
    "templateType": "string"
  }'

Responses

Template replaced successfully

Bodyapplication/json
additionalInformationobjectrequired

Additional template-specific configuration or metadata.

createdAtstring(date-time)required

Timestamp when the template was created.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the template is active and can be used.

namestringrequired

Human-readable name of the template.

templateIdstringrequired

Canonical unique identifier for the template.

Example: "123e4567-e89b-12d3-a456-426614174000"
templateSubtypestring or nullrequired

Optional subtype of the template (e.g., reminder, discharge).

templateTypestringrequired

High-level type of the template (e.g., email, sms, document).

updatedAtstring(date-time)required

Timestamp when the template was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalInformation": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "templateId": "123e4567-e89b-12d3-a456-426614174000", "templateSubtype": "string", "templateType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Template record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

templateIdstringrequired

Template unique identifier (UUID)

curl -i -X DELETE \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/template/{templateId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Template deleted successfully

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations