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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
associatedResourceIdstring

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstring

Identifier of the tag category, if applicable.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the tag is currently active and can be used.

namestringrequired

Human-readable tag label.

tagIdstringrequired

Canonical unique identifier for the tag.

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

Responses

Tag created successfully

Bodyapplication/json
associatedResourceIdstringrequired

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstringrequired

Identifier of the tag category, if applicable.

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

Timestamp when the tag was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the tag is currently active and can be used.

namestringrequired

Human-readable tag label.

tagIdstringrequired

Canonical unique identifier for the tag.

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

Timestamp when the tag was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "associatedResourceId": "123e4567-e89b-12d3-a456-426614174000", "associatedResourceType": "string", "categoryId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "tagId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Tags 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""associatedResourceType""name"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
associatedResourceIdstring

Identifier of the resource this tag is associated with.

Example: associatedResourceId=123e4567-e89b-12d3-a456-426614174000
associatedResourceTypestring

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstring

Identifier of the tag category, if applicable.

Example: categoryId=123e4567-e89b-12d3-a456-426614174000
isActiveboolean

Whether the tag is currently active and can be used.

namestring

Human-readable tag label.

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

Responses

Paginated list of Tags

Request

Returns a single Tag by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

tagIdstringrequired

Tag unique identifier (UUID)

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

Responses

Tag found

Bodyapplication/json
associatedResourceIdstringrequired

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstringrequired

Identifier of the tag category, if applicable.

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

Timestamp when the tag was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the tag is currently active and can be used.

namestringrequired

Human-readable tag label.

tagIdstringrequired

Canonical unique identifier for the tag.

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

Timestamp when the tag was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "associatedResourceId": "123e4567-e89b-12d3-a456-426614174000", "associatedResourceType": "string", "categoryId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "tagId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

tagIdstringrequired

Tag unique identifier (UUID)

Bodyapplication/jsonrequired
associatedResourceIdstring

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstring

Identifier of the tag category, if applicable.

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

Vendor- or practice-specific extensions.

isActiveboolean

Whether the tag is currently active and can be used.

namestring

Human-readable tag label.

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

Responses

Tag updated successfully

Bodyapplication/json
associatedResourceIdstringrequired

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstringrequired

Identifier of the tag category, if applicable.

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

Timestamp when the tag was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the tag is currently active and can be used.

namestringrequired

Human-readable tag label.

tagIdstringrequired

Canonical unique identifier for the tag.

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

Timestamp when the tag was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "associatedResourceId": "123e4567-e89b-12d3-a456-426614174000", "associatedResourceType": "string", "categoryId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "tagId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

tagIdstringrequired

Tag unique identifier (UUID)

Bodyapplication/jsonrequired
associatedResourceIdstringrequired

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstringrequired

Identifier of the tag category, if applicable.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the tag is currently active and can be used.

namestringrequired

Human-readable tag label.

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

Responses

Tag replaced successfully

Bodyapplication/json
associatedResourceIdstringrequired

Identifier of the resource this tag is associated with.

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

Type of resource this tag is associated with (e.g., animal, contact, invoice).

categoryIdstringrequired

Identifier of the tag category, if applicable.

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

Timestamp when the tag was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the tag is currently active and can be used.

namestringrequired

Human-readable tag label.

tagIdstringrequired

Canonical unique identifier for the tag.

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

Timestamp when the tag was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "associatedResourceId": "123e4567-e89b-12d3-a456-426614174000", "associatedResourceType": "string", "categoryId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "tagId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Tag record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

tagIdstringrequired

Tag unique identifier (UUID)

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

Responses

Tag deleted successfully

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