Skip to main content

Create an appointment

POST 

/calendar-backend/api/v1/appointments

Create an appointment.

The Appointment is written "as-is" to the database, no checks are performed if a resource actually can handle the appointment at the given time, if there is a capacity at the given time etc. For properly managed Appointment creation, please use the PubBranchEndpoint (aka public API) instead.

Example:

curl -u username:password -X POST -H 'Content-type:application/json'
-d '{"start":"2024-04-18T10:00:00","end":"2024-04-18T10:10:00","branch":{"id":1}}'
http://localhost:8080/calendar-backend/api/v1/appointments

Request​

Responses​

A Json object of com.qmatic.qp.calendar.rest.dto.AppointmentDTO