Skip to main content
POST
/
appointments
Créer un rendez-vous
curl --request POST \
  --url https://api.treats.vet/api/v1/appointments \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "clientId": "550e8400-e29b-41d4-a716-446655440000",
  "patientId": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
  "vetId": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "appointmentTypeId": "a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11",
  "scheduledAt": "2026-02-15T10:00:00Z",
  "reason": "Vaccination annuelle"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "clientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "patientId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "appointmentTypeId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "vetId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "scheduledAt": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "reason": "<string>",
  "isUrgent": true,
  "status": "<string>",
  "displayStatus": "<string>",
  "createdAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-API-Key
string
header
required

Clé API fournie par l'administrateur de la clinique. Format : vk_...

Body

application/json
clientId
string<uuid>
required

Identifiant du propriétaire

patientId
string<uuid>
required

Identifiant de l'animal

vetId
string<uuid>
required

Vétérinaire souhaité

scheduledAt
string<date-time>
required

Date et heure souhaitées (vérifier via /appointments/available-slots)

appointmentTypeId
string<uuid>

Type de rendez-vous (obtenu via /appointments/types)

reason
string

Motif de la visite

isUrgent
boolean
default:false

Rendez-vous urgent

Response

Rendez-vous créé

Rendez-vous à la clinique

id
string<uuid>
clientId
string<uuid>

Propriétaire

patientId
string<uuid>

Animal concerné

appointmentTypeId
string<uuid>

Type de rendez-vous

vetId
string<uuid>

Vétérinaire assigné

scheduledAt
string<date-time>

Date et heure prévues

endTime
string<date-time>

Heure de fin prévue

reason
string

Motif du rendez-vous

isUrgent
boolean
status
string

Statut actuel du rendez-vous

displayStatus
string

Statut affiché (libellé)

createdAt
string<date-time>