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

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