API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

Bulk operation

POST/v1/work-planning/desk-bookings/bulk

Book a desk for multiple dates at once. Self-booking by default; team leaders may pass userId to book for a direct report (requires desk_reservation_book_for_team). Partial success: conflicting dates are reported back without aborting the others.

Request body

NameTypeDescription
locationIdrequiredstring
userIdstring
datesrequiredstring[]
halfDayrequiredstring
notesstring

Example

curl -X POST https://api.codemeta-os.de/v1/work-planning/desk-bookings/bulk \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "locationId": "string",
  "userId": "string",
  "dates": [],
  "halfDay": "FULL",
  "notes": "string"
}'
const result = await cm.work-planning.post({
  "locationId": "string",
  "userId": "string",
  "dates": [],
  "halfDay": "FULL",
  "notes": "string"
});

Response codes

HTTP Meaning
200 Default Response

Search