API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

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

NameTypBeschreibung
locationIderforderlichstring
userIdstring
dateserforderlichstring[]
halfDayerforderlichstring
notesstring

Beispiel

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"
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche