Creates a new Herd record. A group of animals managed together, typically in production/agricultural settings.
Security
bearer
Human-readable name or identifier for the herd.
Example:"123e4567-e89b-12d3-a456-426614174000"
Reference to the contact who owns this herd.
Example:"123e4567-e89b-12d3-a456-426614174000"
Reference to the primary location where the herd is kept.
Example:"123e4567-e89b-12d3-a456-426614174000"
- Mock serverhttps://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/herd
- Local Developmenthttp://localhost:8083/site/{siteId}/ahds/v1/herd
curl -i -X POST \
'https://docs.axiomera.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": "123e4567-e89b-12d3-a456-426614174000",
"herdType": {
"code": "12345",
"system": "http://example.com/codesystem",
"display": "Example Display Name"
},
"ownerId": "123e4567-e89b-12d3-a456-426614174000",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"estimatedCount": 1.23,
"isActive": true,
"extensions": {}
}'Herd created successfully
Canonical unique identifier for the herd.
Example:"123e4567-e89b-12d3-a456-426614174000"
Human-readable name or identifier for the herd.
Example:"123e4567-e89b-12d3-a456-426614174000"
Reference to the contact who owns this herd.
Example:"123e4567-e89b-12d3-a456-426614174000"
Reference to the primary location where the herd is kept.
Example:"123e4567-e89b-12d3-a456-426614174000"
Timestamp when the herd record was created.
Example:"2025-01-01T00:00:00.000Z"
Timestamp when the herd record was last updated.
Example:"2025-01-01T00:00:00.000Z"
Response
{ "herdId": "123e4567-e89b-12d3-a456-426614174000", "name": "123e4567-e89b-12d3-a456-426614174000", "herdType": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" }, "ownerId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "estimatedCount": 1.23, "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }