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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
animalIdstring

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstring

Chain or grouping identifier for related history records.

commentsstring

Free-text comments or narrative for this history entry.

consultIdstring

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
eventAtstring

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historyIdstringrequired

Unique identifier for this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
historySystemstring

Source or subsystem that created or owns this history record.

isActivebooleanrequired

Whether this history record is active.

vetIdstring

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/history' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "animalId": "123e4567-e89b-12d3-a456-426614174000",
    "chain": "string",
    "comments": "string",
    "consultId": "123e4567-e89b-12d3-a456-426614174000",
    "eventAt": "2025-01-01T00:00:00.000Z",
    "extensions": {},
    "historyId": "123e4567-e89b-12d3-a456-426614174000",
    "historySystem": "string",
    "isActive": true,
    "vetId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Responses

History created successfully

Bodyapplication/json
animalIdstringrequired

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstringrequired

Chain or grouping identifier for related history records.

commentsstringrequired

Free-text comments or narrative for this history entry.

consultIdstringrequired

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when this history record was created.

Example: "2025-01-01T00:00:00.000Z"
eventAtstring(date-time)required

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historyIdstringrequired

Unique identifier for this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
historySystemstringrequired

Source or subsystem that created or owns this history record.

isActivebooleanrequired

Whether this history record is active.

updatedAtstring(date-time)required

Timestamp when this history record was last updated.

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

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
Response
application/json
{ "animalId": "123e4567-e89b-12d3-a456-426614174000", "chain": "string", "comments": "string", "consultId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "eventAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "historyId": "123e4567-e89b-12d3-a456-426614174000", "historySystem": "string", "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "vetId": "123e4567-e89b-12d3-a456-426614174000" }

Request

Returns a paginated list of Histories 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""chain""comments""eventAt""historySystem"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
animalIdstring

Identifier of the animal associated with this history record.

Example: animalId=123e4567-e89b-12d3-a456-426614174000
chainstring

Chain or grouping identifier for related history records.

commentsstring

Free-text comments or narrative for this history entry.

consultIdstring

Identifier of the consult associated with this history record.

Example: consultId=123e4567-e89b-12d3-a456-426614174000
historySystemstring

Source or subsystem that created or owns this history record.

isActiveboolean

Whether this history record is active.

vetIdstring

Identifier of the veterinarian associated with this history record.

Example: vetId=123e4567-e89b-12d3-a456-426614174000
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/history?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&animalId=123e4567-e89b-12d3-a456-426614174000&chain=string&comments=string&consultId=123e4567-e89b-12d3-a456-426614174000&historySystem=string&isActive=true&vetId=123e4567-e89b-12d3-a456-426614174000' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Histories

Request

Returns a single History by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

historyIdstringrequired

History unique identifier (UUID)

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

Responses

History found

Bodyapplication/json
animalIdstringrequired

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstringrequired

Chain or grouping identifier for related history records.

commentsstringrequired

Free-text comments or narrative for this history entry.

consultIdstringrequired

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when this history record was created.

Example: "2025-01-01T00:00:00.000Z"
eventAtstring(date-time)required

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historyIdstringrequired

Unique identifier for this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
historySystemstringrequired

Source or subsystem that created or owns this history record.

isActivebooleanrequired

Whether this history record is active.

updatedAtstring(date-time)required

Timestamp when this history record was last updated.

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

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
Response
application/json
{ "animalId": "123e4567-e89b-12d3-a456-426614174000", "chain": "string", "comments": "string", "consultId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "eventAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "historyId": "123e4567-e89b-12d3-a456-426614174000", "historySystem": "string", "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "vetId": "123e4567-e89b-12d3-a456-426614174000" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

historyIdstringrequired

History unique identifier (UUID)

Bodyapplication/jsonrequired
animalIdstring

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstring

Chain or grouping identifier for related history records.

commentsstring

Free-text comments or narrative for this history entry.

consultIdstring

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
eventAtstring

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historySystemstring

Source or subsystem that created or owns this history record.

isActiveboolean

Whether this history record is active.

vetIdstring

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/history/{historyId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "animalId": "123e4567-e89b-12d3-a456-426614174000",
    "chain": "string",
    "comments": "string",
    "consultId": "123e4567-e89b-12d3-a456-426614174000",
    "eventAt": "2025-01-01T00:00:00.000Z",
    "extensions": {},
    "historySystem": "string",
    "isActive": true,
    "vetId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Responses

History updated successfully

Bodyapplication/json
animalIdstringrequired

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstringrequired

Chain or grouping identifier for related history records.

commentsstringrequired

Free-text comments or narrative for this history entry.

consultIdstringrequired

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when this history record was created.

Example: "2025-01-01T00:00:00.000Z"
eventAtstring(date-time)required

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historyIdstringrequired

Unique identifier for this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
historySystemstringrequired

Source or subsystem that created or owns this history record.

isActivebooleanrequired

Whether this history record is active.

updatedAtstring(date-time)required

Timestamp when this history record was last updated.

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

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
Response
application/json
{ "animalId": "123e4567-e89b-12d3-a456-426614174000", "chain": "string", "comments": "string", "consultId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "eventAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "historyId": "123e4567-e89b-12d3-a456-426614174000", "historySystem": "string", "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "vetId": "123e4567-e89b-12d3-a456-426614174000" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

historyIdstringrequired

History unique identifier (UUID)

Bodyapplication/jsonrequired
animalIdstringrequired

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstringrequired

Chain or grouping identifier for related history records.

commentsstringrequired

Free-text comments or narrative for this history entry.

consultIdstringrequired

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
eventAtstringrequired

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historySystemstringrequired

Source or subsystem that created or owns this history record.

isActivebooleanrequired

Whether this history record is active.

vetIdstringrequired

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/history/{historyId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "animalId": "123e4567-e89b-12d3-a456-426614174000",
    "chain": "string",
    "comments": "string",
    "consultId": "123e4567-e89b-12d3-a456-426614174000",
    "eventAt": "2025-01-01T00:00:00.000Z",
    "extensions": {},
    "historySystem": "string",
    "isActive": true,
    "vetId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Responses

History replaced successfully

Bodyapplication/json
animalIdstringrequired

Identifier of the animal associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
chainstringrequired

Chain or grouping identifier for related history records.

commentsstringrequired

Free-text comments or narrative for this history entry.

consultIdstringrequired

Identifier of the consult associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when this history record was created.

Example: "2025-01-01T00:00:00.000Z"
eventAtstring(date-time)required

Timestamp of the clinical or system event represented by this history record.

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

Vendor- or practice-specific extensions.

historyIdstringrequired

Unique identifier for this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
historySystemstringrequired

Source or subsystem that created or owns this history record.

isActivebooleanrequired

Whether this history record is active.

updatedAtstring(date-time)required

Timestamp when this history record was last updated.

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

Identifier of the veterinarian associated with this history record.

Example: "123e4567-e89b-12d3-a456-426614174000"
Response
application/json
{ "animalId": "123e4567-e89b-12d3-a456-426614174000", "chain": "string", "comments": "string", "consultId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "eventAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "historyId": "123e4567-e89b-12d3-a456-426614174000", "historySystem": "string", "isActive": true, "updatedAt": "2025-01-01T00:00:00.000Z", "vetId": "123e4567-e89b-12d3-a456-426614174000" }

Request

Permanently deletes a History record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

historyIdstringrequired

History unique identifier (UUID)

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

Responses

History deleted successfully

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