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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
downloadUrlstring

URL that can be used to download the file content.

extensionsobject

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.

notesstring

Free-text notes about the file.

sizeBytesnumberrequired

Size of the file in bytes.

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

Responses

File created 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

Returns a paginated list of Files 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""downloadUrl""mimeType""name""notes""sizeBytes"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
downloadUrlstring

URL that can be used to download the file content.

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.

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

Responses

Paginated list of Files

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" }

Request

Permanently deletes a File record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileIdstringrequired

File unique identifier (UUID)

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

Responses

File 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