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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
contentTypestringrequired

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

extensionsobject

Vendor- or practice-specific extensions.

fileNamestringrequired

Original file name as provided by the client or system.

fileUploadIdstringrequired

Canonical identifier for this file upload.

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

Optional notes or description associated with the file.

sizeBytesnumberrequired

Size of the uploaded file in bytes.

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

Responses

File Upload created successfully

Bodyapplication/json
contentTypestringrequired

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

createdAtstring(date-time)required

Timestamp when the file was created/uploaded in the system.

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

Vendor- or practice-specific extensions.

fileNamestringrequired

Original file name as provided by the client or system.

fileUploadIdstringrequired

Canonical identifier for this file upload.

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

Optional notes or description associated with the file.

sizeBytesnumberrequired

Size of the uploaded file in bytes.

updatedAtstring(date-time)required

Timestamp when the file metadata was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "contentType": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileName": "string", "fileUploadId": "123e4567-e89b-12d3-a456-426614174000", "notes": "string", "sizeBytes": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of File Uploads 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""contentType""fileName""notes""sizeBytes"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
contentTypestring

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

fileNamestring

Original file name as provided by the client or system.

notesstring

Optional notes or description associated with the file.

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

Responses

Paginated list of File Uploads

Request

Returns a single File Upload by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileUploadIdstringrequired

File Upload unique identifier (UUID)

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

Responses

File Upload found

Bodyapplication/json
contentTypestringrequired

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

createdAtstring(date-time)required

Timestamp when the file was created/uploaded in the system.

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

Vendor- or practice-specific extensions.

fileNamestringrequired

Original file name as provided by the client or system.

fileUploadIdstringrequired

Canonical identifier for this file upload.

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

Optional notes or description associated with the file.

sizeBytesnumberrequired

Size of the uploaded file in bytes.

updatedAtstring(date-time)required

Timestamp when the file metadata was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "contentType": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileName": "string", "fileUploadId": "123e4567-e89b-12d3-a456-426614174000", "notes": "string", "sizeBytes": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileUploadIdstringrequired

File Upload unique identifier (UUID)

Bodyapplication/jsonrequired
contentTypestring

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

extensionsobject

Vendor- or practice-specific extensions.

fileNamestring

Original file name as provided by the client or system.

notesstring

Optional notes or description associated with the file.

sizeBytesnumber

Size of the uploaded file in bytes.

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

Responses

File Upload updated successfully

Bodyapplication/json
contentTypestringrequired

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

createdAtstring(date-time)required

Timestamp when the file was created/uploaded in the system.

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

Vendor- or practice-specific extensions.

fileNamestringrequired

Original file name as provided by the client or system.

fileUploadIdstringrequired

Canonical identifier for this file upload.

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

Optional notes or description associated with the file.

sizeBytesnumberrequired

Size of the uploaded file in bytes.

updatedAtstring(date-time)required

Timestamp when the file metadata was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "contentType": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileName": "string", "fileUploadId": "123e4567-e89b-12d3-a456-426614174000", "notes": "string", "sizeBytes": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileUploadIdstringrequired

File Upload unique identifier (UUID)

Bodyapplication/jsonrequired
contentTypestringrequired

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

extensionsobjectrequired

Vendor- or practice-specific extensions.

fileNamestringrequired

Original file name as provided by the client or system.

notesstringrequired

Optional notes or description associated with the file.

sizeBytesnumberrequired

Size of the uploaded file in bytes.

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

Responses

File Upload replaced successfully

Bodyapplication/json
contentTypestringrequired

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

createdAtstring(date-time)required

Timestamp when the file was created/uploaded in the system.

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

Vendor- or practice-specific extensions.

fileNamestringrequired

Original file name as provided by the client or system.

fileUploadIdstringrequired

Canonical identifier for this file upload.

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

Optional notes or description associated with the file.

sizeBytesnumberrequired

Size of the uploaded file in bytes.

updatedAtstring(date-time)required

Timestamp when the file metadata was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "contentType": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "fileName": "string", "fileUploadId": "123e4567-e89b-12d3-a456-426614174000", "notes": "string", "sizeBytes": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a File Upload record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

fileUploadIdstringrequired

File Upload unique identifier (UUID)

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

Responses

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