Update capacity
PUT/calendar-backend/api/v1/capacities/:id
Update capacity.
Update the identified entity with the state of the supplied object.
Example:
curl -u username:password -X PUT -H 'Content-type: application/json'
-d '{"id":2, "name":"Week schedule","start":"08:00","end":"17:00",
"capacityDays":[{"available":true,"weekdayId":0,"workingDay":true,"capacityBlocks":[]},
{"available":true,"weekdayId":1,"workingDay":true,"capacityBlocks":[]}]}'
http://localhost:8080/calendar-backend/api/v1/capacities/2
Request
Responses
- 204
A Json object of com.qmatic.qp.calendar.model.Capacity