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
Name Typ Beschreibung locationIderforderlich stringuserIdstringdateserforderlich string[]halfDayerforderlich stringnotesstring
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
Beschreibung folgt
Diese Operation hat noch keine kuratierte Annotation. Der Inhalt wird beim nächsten Doku-Update ergänzt.