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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
attachmentIdstringrequired

Canonical identifier for the attachment.

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

Vendor- or practice-specific extension fields.

fileDownloadUrlstringrequired

URL that can be used to download the file content, subject to authorization.

fileIdstringrequired

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImagebooleanrequired

Whether this attachment is the primary image for the associated record.

mimeTypestringrequired

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestringrequired

Human-readable name or title of the attachment.

notesstring

Free-text notes related to the attachment.

recordIdstring

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/attachment' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "attachmentId": "123e4567-e89b-12d3-a456-426614174000",
    "extensions": {},
    "fileDownloadUrl": "string",
    "fileId": "123e4567-e89b-12d3-a456-426614174000",
    "isActive": true,
    "isPrimaryImage": true,
    "mimeType": "string",
    "name": "string",
    "notes": "string",
    "recordId": "123e4567-e89b-12d3-a456-426614174000",
    "recordType": "string"
  }'

Responses

Attachment created successfully

Bodyapplication/json
attachmentIdstringrequired

Canonical identifier for the attachment.

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

Timestamp when the attachment record was created.

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

Vendor- or practice-specific extension fields.

fileDownloadUrlstringrequired

URL that can be used to download the file content, subject to authorization.

fileIdstringrequired

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImagebooleanrequired

Whether this attachment is the primary image for the associated record.

mimeTypestringrequired

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestringrequired

Human-readable name or title of the attachment.

notesstringrequired

Free-text notes related to the attachment.

recordIdstringrequired

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

updatedAtstring(date-time)required

Timestamp when the attachment record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "attachmentId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileDownloadUrl": "string", "fileId": "123e4567-e89b-12d3-a456-426614174000", "isActive": true, "isPrimaryImage": true, "mimeType": "string", "name": "string", "notes": "string", "recordId": "123e4567-e89b-12d3-a456-426614174000", "recordType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Attachments 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""fileDownloadUrl""mimeType""name""notes""recordType"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
fileDownloadUrlstring

URL that can be used to download the file content, subject to authorization.

fileIdstring

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImageboolean

Whether this attachment is the primary image for the associated record.

mimeTypestring

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestring

Human-readable name or title of the attachment.

notesstring

Free-text notes related to the attachment.

recordIdstring

Identifier of the record this attachment is linked to.

Example: recordId=123e4567-e89b-12d3-a456-426614174000
recordTypestring

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

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

Responses

Paginated list of Attachments

Request

Returns a single Attachment by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

attachmentIdstringrequired

Attachment unique identifier (UUID)

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

Responses

Attachment found

Bodyapplication/json
attachmentIdstringrequired

Canonical identifier for the attachment.

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

Timestamp when the attachment record was created.

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

Vendor- or practice-specific extension fields.

fileDownloadUrlstringrequired

URL that can be used to download the file content, subject to authorization.

fileIdstringrequired

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImagebooleanrequired

Whether this attachment is the primary image for the associated record.

mimeTypestringrequired

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestringrequired

Human-readable name or title of the attachment.

notesstringrequired

Free-text notes related to the attachment.

recordIdstringrequired

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

updatedAtstring(date-time)required

Timestamp when the attachment record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "attachmentId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileDownloadUrl": "string", "fileId": "123e4567-e89b-12d3-a456-426614174000", "isActive": true, "isPrimaryImage": true, "mimeType": "string", "name": "string", "notes": "string", "recordId": "123e4567-e89b-12d3-a456-426614174000", "recordType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

attachmentIdstringrequired

Attachment unique identifier (UUID)

Bodyapplication/jsonrequired
extensionsobject

Vendor- or practice-specific extension fields.

fileDownloadUrlstring

URL that can be used to download the file content, subject to authorization.

fileIdstring

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImageboolean

Whether this attachment is the primary image for the associated record.

mimeTypestring

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestring

Human-readable name or title of the attachment.

notesstring

Free-text notes related to the attachment.

recordIdstring

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/attachment/{attachmentId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "fileDownloadUrl": "string",
    "fileId": "123e4567-e89b-12d3-a456-426614174000",
    "isActive": true,
    "isPrimaryImage": true,
    "mimeType": "string",
    "name": "string",
    "notes": "string",
    "recordId": "123e4567-e89b-12d3-a456-426614174000",
    "recordType": "string"
  }'

Responses

Attachment updated successfully

Bodyapplication/json
attachmentIdstringrequired

Canonical identifier for the attachment.

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

Timestamp when the attachment record was created.

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

Vendor- or practice-specific extension fields.

fileDownloadUrlstringrequired

URL that can be used to download the file content, subject to authorization.

fileIdstringrequired

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImagebooleanrequired

Whether this attachment is the primary image for the associated record.

mimeTypestringrequired

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestringrequired

Human-readable name or title of the attachment.

notesstringrequired

Free-text notes related to the attachment.

recordIdstringrequired

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

updatedAtstring(date-time)required

Timestamp when the attachment record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "attachmentId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileDownloadUrl": "string", "fileId": "123e4567-e89b-12d3-a456-426614174000", "isActive": true, "isPrimaryImage": true, "mimeType": "string", "name": "string", "notes": "string", "recordId": "123e4567-e89b-12d3-a456-426614174000", "recordType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

attachmentIdstringrequired

Attachment unique identifier (UUID)

Bodyapplication/jsonrequired
extensionsobjectrequired

Vendor- or practice-specific extension fields.

fileDownloadUrlstringrequired

URL that can be used to download the file content, subject to authorization.

fileIdstringrequired

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImagebooleanrequired

Whether this attachment is the primary image for the associated record.

mimeTypestringrequired

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestringrequired

Human-readable name or title of the attachment.

notesstringrequired

Free-text notes related to the attachment.

recordIdstringrequired

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/attachment/{attachmentId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "fileDownloadUrl": "string",
    "fileId": "123e4567-e89b-12d3-a456-426614174000",
    "isActive": true,
    "isPrimaryImage": true,
    "mimeType": "string",
    "name": "string",
    "notes": "string",
    "recordId": "123e4567-e89b-12d3-a456-426614174000",
    "recordType": "string"
  }'

Responses

Attachment replaced successfully

Bodyapplication/json
attachmentIdstringrequired

Canonical identifier for the attachment.

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

Timestamp when the attachment record was created.

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

Vendor- or practice-specific extension fields.

fileDownloadUrlstringrequired

URL that can be used to download the file content, subject to authorization.

fileIdstringrequired

Identifier of the underlying stored file object.

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

Whether the attachment is active and should be shown in client applications.

isPrimaryImagebooleanrequired

Whether this attachment is the primary image for the associated record.

mimeTypestringrequired

MIME type of the attached file (e.g. 'image/jpeg', 'application/pdf').

namestringrequired

Human-readable name or title of the attachment.

notesstringrequired

Free-text notes related to the attachment.

recordIdstringrequired

Identifier of the record this attachment is linked to.

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

Type of record this attachment is associated with (e.g. 'Animal', 'Contact', 'Consult').

updatedAtstring(date-time)required

Timestamp when the attachment record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "attachmentId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileDownloadUrl": "string", "fileId": "123e4567-e89b-12d3-a456-426614174000", "isActive": true, "isPrimaryImage": true, "mimeType": "string", "name": "string", "notes": "string", "recordId": "123e4567-e89b-12d3-a456-426614174000", "recordType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Attachment record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

attachmentIdstringrequired

Attachment unique identifier (UUID)

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

Responses

Attachment 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
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