API · v1 · stabil
CODEMETA OSDeveloper Center
Konsole öffnen

POST /v1/work-planning/submit-week

POST/v1/work-planning/submit-week

Submit a full week of work schedule entries for approval. Aggregates ArbZG/TV flags across the week (Phase 8.6 Warn-and-Confirm gate); returns 409 with the flag list when acknowledgements are missing or invalid.

Request Body

NameTypBeschreibung
weekStarterforderlichstring<date>
acknowledgementsobject[]

Beispiel

curl -X POST https://api.codemeta-os.de/v1/work-planning/submit-week \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "weekStart": "string",
  "acknowledgements": []
}'
const result = await cm.work-planning.post({
  "weekStart": "string",
  "acknowledgements": []
});

Antwortcodes

HTTP Bedeutung
200 Default Response

Suche