Create the VetManager visit for a consultation
Creates a visit for the selected owner and animal in VetManager (or adds the animal to an earlier visit) and links the consultation to it. It does not export the note: call the export endpoint next. A new visit charges the practice's basic fee. Safe to retry: when the visit context reports a pending creation with canRetry, resend the same selection to finish it without creating a duplicate.
Errors: 400 for an empty note or a selection VetManager rejects (for example an animal the owner does not own); 401 when the caller must sign in to VetManager again; 403 when the practice is not linked or not allowed to create visits; 409 when the account changed, the consultation is already linked, or another creation is in progress.
Request
- Base URLhttps://vetnio.com/api/v2
- URLhttps://vetnio.com/api/v2/workspaces/{workspaceId}/consultations/{consultationId}/vetmanager/visit
- AuthHTTP bearer
Path parameters
Identifier of the clinic (workspace), as returned by GET /workspaces. The key's user must be a member of the clinic, or an admin of the organization it belongs to.
Identifier of the consultation (UUID), as returned when it was created or by GET /workspaces/{workspaceId}/consultations. It must belong to the clinic in workspaceId.
Request body
Example request
{
"practiceId": 4242,
"identityKey": "3f1e9c0b7a",
"clinicalNote": "<p><strong>Anamnes</strong><br>Hälta vänster bak sedan två veckor.</p>",
"selection": {
"contactId": 5101,
"animalId": 8811,
"assignmentId": 3100001,
"name": "Hälta"
}
}Response
The linked visit.
Example response
{
"resonId": 2535050,
"assignmentId": 3100001,
"practiceId": 4242,
"contactId": 5101,
"animalId": 8811,
"returnUrl": "https://vetmanager.se/vet_assignments/3100001/edit"
}Changes
No recorded changes to this operation across all 1 revision of this API.