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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
accessLevelstring

Access level or visibility of the resource.

associatedEntityobject

Entity this resource is associated with, if applicable.

extensionsobject

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the resource is currently active.

namestringrequired

Human-readable name of the resource.

ownershipobject

Ownership information for the resource.

resourceIdstringrequired

Canonical identifier for the resource.

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

Type or category of the resource.

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

Responses

Resource created successfully

Bodyapplication/json
accessLevelstringrequired

Access level or visibility of the resource.

associatedEntityobjectrequired

Entity this resource is associated with, if applicable.

createdAtstring(date-time)required

Timestamp when the resource was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the resource is currently active.

namestringrequired

Human-readable name of the resource.

ownershipobjectrequired

Ownership information for the resource.

resourceIdstringrequired

Canonical identifier for the resource.

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

Type or category of the resource.

updatedAtstring(date-time)required

Timestamp when the resource was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "accessLevel": "string", "associatedEntity": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "ownership": {}, "resourceId": "123e4567-e89b-12d3-a456-426614174000", "resourceType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Resources 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""accessLevel""name""resourceType"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
accessLevelstring

Access level or visibility of the resource.

isActiveboolean

Whether the resource is currently active.

namestring

Human-readable name of the resource.

resourceTypestring

Type or category of the resource.

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

Responses

Paginated list of Resources

Request

Returns a single Resource by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

resourceIdstringrequired

Resource unique identifier (UUID)

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

Responses

Resource found

Bodyapplication/json
accessLevelstringrequired

Access level or visibility of the resource.

associatedEntityobjectrequired

Entity this resource is associated with, if applicable.

createdAtstring(date-time)required

Timestamp when the resource was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the resource is currently active.

namestringrequired

Human-readable name of the resource.

ownershipobjectrequired

Ownership information for the resource.

resourceIdstringrequired

Canonical identifier for the resource.

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

Type or category of the resource.

updatedAtstring(date-time)required

Timestamp when the resource was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "accessLevel": "string", "associatedEntity": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "ownership": {}, "resourceId": "123e4567-e89b-12d3-a456-426614174000", "resourceType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

resourceIdstringrequired

Resource unique identifier (UUID)

Bodyapplication/jsonrequired
accessLevelstring

Access level or visibility of the resource.

associatedEntityobject

Entity this resource is associated with, if applicable.

extensionsobject

Vendor- or practice-specific extensions.

isActiveboolean

Whether the resource is currently active.

namestring

Human-readable name of the resource.

ownershipobject

Ownership information for the resource.

resourceTypestring

Type or category of the resource.

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/resource/{resourceId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "accessLevel": "string",
    "associatedEntity": {},
    "extensions": {},
    "isActive": true,
    "name": "string",
    "ownership": {},
    "resourceType": "string"
  }'

Responses

Resource updated successfully

Bodyapplication/json
accessLevelstringrequired

Access level or visibility of the resource.

associatedEntityobjectrequired

Entity this resource is associated with, if applicable.

createdAtstring(date-time)required

Timestamp when the resource was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the resource is currently active.

namestringrequired

Human-readable name of the resource.

ownershipobjectrequired

Ownership information for the resource.

resourceIdstringrequired

Canonical identifier for the resource.

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

Type or category of the resource.

updatedAtstring(date-time)required

Timestamp when the resource was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "accessLevel": "string", "associatedEntity": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "ownership": {}, "resourceId": "123e4567-e89b-12d3-a456-426614174000", "resourceType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

resourceIdstringrequired

Resource unique identifier (UUID)

Bodyapplication/jsonrequired
accessLevelstringrequired

Access level or visibility of the resource.

associatedEntityobjectrequired

Entity this resource is associated with, if applicable.

extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the resource is currently active.

namestringrequired

Human-readable name of the resource.

ownershipobjectrequired

Ownership information for the resource.

resourceTypestringrequired

Type or category of the resource.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/resource/{resourceId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "accessLevel": "string",
    "associatedEntity": {},
    "extensions": {},
    "isActive": true,
    "name": "string",
    "ownership": {},
    "resourceType": "string"
  }'

Responses

Resource replaced successfully

Bodyapplication/json
accessLevelstringrequired

Access level or visibility of the resource.

associatedEntityobjectrequired

Entity this resource is associated with, if applicable.

createdAtstring(date-time)required

Timestamp when the resource was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the resource is currently active.

namestringrequired

Human-readable name of the resource.

ownershipobjectrequired

Ownership information for the resource.

resourceIdstringrequired

Canonical identifier for the resource.

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

Type or category of the resource.

updatedAtstring(date-time)required

Timestamp when the resource was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "accessLevel": "string", "associatedEntity": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "ownership": {}, "resourceId": "123e4567-e89b-12d3-a456-426614174000", "resourceType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Resource record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

resourceIdstringrequired

Resource unique identifier (UUID)

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

Responses

Resource 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