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

Request

Returns a single File by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileIdstringrequired

File unique identifier (UUID)

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

Responses

File found

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the file record was created.

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

URL that can be used to download the file content.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fileIdstringrequired

Canonical identifier for the file.

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

Whether the file is active and available for use.

mimeTypestringrequired

MIME type of the file, e.g. 'application/pdf'.

namestringrequired

Human-readable file name, typically including extension.

notesstringrequired

Free-text notes about the file.

sizeBytesnumberrequired

Size of the file in bytes.

updatedAtstring(date-time)required

Timestamp when the file record was last modified.

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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileIdstringrequired

File unique identifier (UUID)

Bodyapplication/jsonrequired
downloadUrlstring

URL that can be used to download the file content.

extensionsobject

Vendor- or practice-specific extensions.

isActiveboolean

Whether the file is active and available for use.

mimeTypestring

MIME type of the file, e.g. 'application/pdf'.

namestring

Human-readable file name, typically including extension.

notesstring

Free-text notes about the file.

sizeBytesnumber

Size of the file in bytes.

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/file/{fileId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "downloadUrl": "string",
    "extensions": {},
    "isActive": true,
    "mimeType": "string",
    "name": "string",
    "notes": "string",
    "sizeBytes": 0
  }'

Responses

File updated successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the file record was created.

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

URL that can be used to download the file content.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fileIdstringrequired

Canonical identifier for the file.

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

Whether the file is active and available for use.

mimeTypestringrequired

MIME type of the file, e.g. 'application/pdf'.

namestringrequired

Human-readable file name, typically including extension.

notesstringrequired

Free-text notes about the file.

sizeBytesnumberrequired

Size of the file in bytes.

updatedAtstring(date-time)required

Timestamp when the file record was last modified.

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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileIdstringrequired

File unique identifier (UUID)

Bodyapplication/jsonrequired
downloadUrlstringrequired

URL that can be used to download the file content.

extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether the file is active and available for use.

mimeTypestringrequired

MIME type of the file, e.g. 'application/pdf'.

namestringrequired

Human-readable file name, typically including extension.

notesstringrequired

Free-text notes about the file.

sizeBytesnumberrequired

Size of the file in bytes.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/file/{fileId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "downloadUrl": "string",
    "extensions": {},
    "isActive": true,
    "mimeType": "string",
    "name": "string",
    "notes": "string",
    "sizeBytes": 0
  }'

Responses

File replaced successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the file record was created.

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

URL that can be used to download the file content.

extensionsobjectrequired

Vendor- or practice-specific extensions.

fileIdstringrequired

Canonical identifier for the file.

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

Whether the file is active and available for use.

mimeTypestringrequired

MIME type of the file, e.g. 'application/pdf'.

namestringrequired

Human-readable file name, typically including extension.

notesstringrequired

Free-text notes about the file.

sizeBytesnumberrequired

Size of the file in bytes.

updatedAtstring(date-time)required

Timestamp when the file record was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "downloadUrl": "string", "extensions": {}, "fileId": "123e4567-e89b-12d3-a456-426614174000", "isActive": true, "mimeType": "string", "name": "string", "notes": "string", "sizeBytes": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations