Create a patient
Creates a patient and, always, a new owner (client) for it: the client object fills in the owner's details, and omitting it creates an empty placeholder owner. An existing client cannot be reused through this endpoint. All fields are optional and stored as given. Returns the patient with the new owner embedded.
Not idempotent and not deduplicated: Vetnio does not check for an existing patient with the same name or identifier, so repeating the call creates another patient and owner. Search the patient list by identifier first if duplicates matter. An invalid dateOfBirth fails with 500 and may leave the new owner behind without a patient.
Request
- Base URLhttps://vetnio.com/api/v2
- URLhttps://vetnio.com/api/v2/workspaces/{workspaceId}/patients
- AuthHTTP bearer
Path parameters
Identifier of the workspace (clinic) that owns the patients and clients. The caller must be a member of it; patients and clients are shared by all members of the workspace.
Request body
Example request
{
"name": "Bella",
"species": "Dog - Labrador Retriever",
"breed": "Labrador Retriever",
"dateOfBirth": "2018-04-12",
"gender": "Female Neutered",
"weight": "24.5 kg",
"identifier": "752098100012345",
"insurance": "Agria",
"client": {
"name": "Alex Morgan",
"email": "alex.morgan@example.com",
"address": "12 Harbour Street, Riverside",
"zipCode": "114 51",
"phoneNumbers": [
"+46701234567"
]
}
}Response
The newly created patient with its embedded client.
Example response
{
"id": "f2a3b4c5-d6e7-4890-fabc-012345678901",
"name": "Bella",
"species": "Dog - Labrador Retriever",
"breed": "Labrador Retriever",
"dateOfBirth": "2018-04-12",
"gender": "Female Neutered",
"weight": "24.5 kg",
"identifier": "752098100012345",
"insurance": "Agria",
"clientId": "e1f2a3b4-c5d6-4789-efab-901234567890",
"createdAt": "2026-09-12T08:41:07.000Z",
"updatedAt": "2026-10-01T14:03:22.000Z",
"client": {
"id": "e1f2a3b4-c5d6-4789-efab-901234567890",
"name": "Alex Morgan",
"address": "12 Harbour Street, Riverside",
"zipCode": "114 51",
"phoneNumbers": [
"+46701234567"
],
"email": "alex.morgan@example.com"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.