API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

PATCH /v1/working_time_models/{id}/approval

PATCH/v1/working_time_models/{id}/approval

Record a works-council decision on a working time model (ADR 0036b Phase 6.5)

Data model

This operation works on the entity Working Time Model (working_time_model). All 40 fields — type, validation, required status, relationships — are listed in the schema reference.

Request body

NameTypeDescription
approvalStaterequiredstring
worksCouncilCaseRefstring
meetingDatestring
rejectionReasonstring

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X PATCH https://api.codemeta-os.de/v1/working_time_models/{id}/approval \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "approvalState": "APPROVED",
  "worksCouncilCaseRef": "string",
  "meetingDate": "string",
  "rejectionReason": "string"
}'
const result = await cm.working_time_models.patch({
  "approvalState": "APPROVED",
  "worksCouncilCaseRef": "string",
  "meetingDate": "string",
  "rejectionReason": "string"
});

Response codes

HTTP Meaning
200 Default Response

Search