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.
Corps de la requête
Nom Type Description locationIdobligatoire stringuserIdstringdatesobligatoire string[]halfDayobligatoire stringnotesstring
Exemple
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"
});
Codes de réponse
HTTP
Signification
200
Default Response
Description à venir
Cette opération n'a pas encore d'annotation relue. Le contenu sera ajouté lors de la prochaine mise à jour de la documentation.