Book an appointment
POST/api/v2/scheduling/events
Creates an appointment after checking the requested interval against the availability engine. The check and the insert share one transaction and one pessimistic lock over the calendar's and the assignee's agenda, so a second booking of the same slot waits and is then rejected.
Request
Responses
- 201
- 400
- 401
- 403
- 404
- 422
- 500
Appointment booked
Validation error ÔÇö the request body or a query parameter failed constraint validation. The response payload includes a errors array with field-level details.
Missing or invalid JWT (Bearer token).
Authenticated user is missing the CREAR_EVENTO permission
Calendar, branch or related entity not found
The payload is valid but the engine does not offer that interval. The detail names the slots that were available that day. Retry with ignoreFreeSlotValidation=true to book it anyway.
Unexpected server error. Includes legacy WAR failures that are not classified as 502 / 503 / 504.