Skip to main content

Create capacity

POST 

/calendar-backend/api/v1/capacities

Create capacity.

Create the supplied Capacity, including all its child CapacityDays and CapacityBlocks.

Example:

curl -u username:password -X POST -H 'Content-type: application/json'
-d '{"name":"Week schedule","start":"08:00","end":"16:00",
"capacityDays":[{"available":true,"weekdayId":0,"workingDay":true,"capacityBlocks":[]}]}'
http://localhost:8080/calendar-backend/api/v1/capacities

Request​

Responses​

HTTP 200 if successful