Animal Health Data Store - V1 API Documentation
AHDS Store API (1.0)
https://docs.heydonto.com/_mock/apis/animal-health/openapi/
http://localhost:8083/
Canonical unique identifier for the herd.
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/herd
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"herdId": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"herdType": {
"code": "string",
"system": "string",
"display": "string"
},
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"estimatedCount": 0,
"isActive": true,
"extensions": {}
}'Herd created successfully
Canonical unique identifier for the herd.
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
Timestamp when the herd record was created.
Timestamp when the herd record was last updated.
{ "herdId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "herdType": { "code": "string", "system": "string", "display": "string" }, "ownerId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "estimatedCount": 0, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/herd
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&name=string&ownerId=123e4567-e89b-12d3-a456-426614174000&locationId=123e4567-e89b-12d3-a456-426614174000&isActive=true' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/herd/{herdId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Herd found
Canonical unique identifier for the herd.
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
Timestamp when the herd record was created.
Timestamp when the herd record was last updated.
{ "herdId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "herdType": { "code": "string", "system": "string", "display": "string" }, "ownerId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "estimatedCount": 0, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/herd/{herdId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"herdType": {
"code": "string",
"system": "string",
"display": "string"
},
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"estimatedCount": 0,
"isActive": true,
"extensions": {}
}'Herd updated successfully
Canonical unique identifier for the herd.
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
Timestamp when the herd record was created.
Timestamp when the herd record was last updated.
{ "herdId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "herdType": { "code": "string", "system": "string", "display": "string" }, "ownerId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "estimatedCount": 0, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/herd/{herdId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"herdType": {
"code": "string",
"system": "string",
"display": "string"
},
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"estimatedCount": 0,
"isActive": true,
"extensions": {}
}'Herd replaced successfully
Canonical unique identifier for the herd.
Reference to the contact who owns this herd.
Reference to the primary location where the herd is kept.
Timestamp when the herd record was created.
Timestamp when the herd record was last updated.
{ "herdId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "herdType": { "code": "string", "system": "string", "display": "string" }, "ownerId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "estimatedCount": 0, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/herd/{herdId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd/{herdId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'