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 location.
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/location
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/location
- 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/location' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"locationType": {
"code": "string",
"system": "string",
"display": "string"
},
"parentLocationId": "123e4567-e89b-12d3-a456-426614174000",
"facilityId": "123e4567-e89b-12d3-a456-426614174000",
"address": {},
"coordinates": {},
"isActive": true,
"extensions": {}
}'Location created successfully
Canonical unique identifier for the location.
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
Timestamp when the location record was created.
Timestamp when the location record was last updated.
{ "locationId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "locationType": { "code": "string", "system": "string", "display": "string" }, "parentLocationId": "123e4567-e89b-12d3-a456-426614174000", "facilityId": "123e4567-e89b-12d3-a456-426614174000", "address": {}, "coordinates": {}, "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/location
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/location
- 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/location?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&name=string&parentLocationId=123e4567-e89b-12d3-a456-426614174000&facilityId=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/location/{locationId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/location/{locationId}
- 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/location/{locationId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Location found
Canonical unique identifier for the location.
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
Timestamp when the location record was created.
Timestamp when the location record was last updated.
{ "locationId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "locationType": { "code": "string", "system": "string", "display": "string" }, "parentLocationId": "123e4567-e89b-12d3-a456-426614174000", "facilityId": "123e4567-e89b-12d3-a456-426614174000", "address": {}, "coordinates": {}, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/location/{locationId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/location/{locationId}
- 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/location/{locationId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"locationType": {
"code": "string",
"system": "string",
"display": "string"
},
"parentLocationId": "123e4567-e89b-12d3-a456-426614174000",
"facilityId": "123e4567-e89b-12d3-a456-426614174000",
"address": {},
"coordinates": {},
"isActive": true,
"extensions": {}
}'Location updated successfully
Canonical unique identifier for the location.
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
Timestamp when the location record was created.
Timestamp when the location record was last updated.
{ "locationId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "locationType": { "code": "string", "system": "string", "display": "string" }, "parentLocationId": "123e4567-e89b-12d3-a456-426614174000", "facilityId": "123e4567-e89b-12d3-a456-426614174000", "address": {}, "coordinates": {}, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/location/{locationId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/location/{locationId}
- 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/location/{locationId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"locationType": {
"code": "string",
"system": "string",
"display": "string"
},
"parentLocationId": "123e4567-e89b-12d3-a456-426614174000",
"facilityId": "123e4567-e89b-12d3-a456-426614174000",
"address": {},
"coordinates": {},
"isActive": true,
"extensions": {}
}'Location replaced successfully
Canonical unique identifier for the location.
Reference to parent location for hierarchical structures.
Reference to the facility this location belongs to.
Timestamp when the location record was created.
Timestamp when the location record was last updated.
{ "locationId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "locationType": { "code": "string", "system": "string", "display": "string" }, "parentLocationId": "123e4567-e89b-12d3-a456-426614174000", "facilityId": "123e4567-e89b-12d3-a456-426614174000", "address": {}, "coordinates": {}, "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/location/{locationId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/location/{locationId}
- 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/location/{locationId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'