API · v1 · stable
CODEMETA OSDeveloper Center
EN
Open console

Patch working_time_assignment

PATCH/v1/working_time_assignments/{id}

JSON Merge Patch update.

Data model

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

  • Required fields: scope, scopeId, workingTimeModelId, validFrom, validTo
  • Server-managed: _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, approvalState, approvedAt, approvedBy, submittedForApprovalAt, submittedBy — the platform assigns these fields; they are discarded in the request.

Request body

NameTypeDescription
validFromstring
validTostring
workingTimeModelIdstring
weeklyHoursnumber
partTimePercentnumber
collectiveAgreementIdstring
approvalStatestring
notesstring
worksCouncilCaseRefstring
rejectionReasonstring
meetingDatestringDatum der BR-Sitzung (Phase 6.5). Wird in die works_council_approval-Audit-Row übernommen.

Path parameters

NameTypeDescription
idrequiredstring

Example

curl -X PATCH https://api.codemeta-os.de/v1/working_time_assignments/{id} \
  -H "X-Tenant-Id: $TENANT" \
  -H "Content-Type: application/json" \
  -b cookies.txt \
  -d '{
  "validFrom": "string",
  "validTo": "string",
  "workingTimeModelId": "string",
  "weeklyHours": 0,
  "partTimePercent": 0,
  "collectiveAgreementId": "string",
  "approvalState": "DRAFT",
  "notes": "string",
  "worksCouncilCaseRef": "string",
  "rejectionReason": "string",
  "meetingDate": "string"
}'
const result = await cm.working_time_assignments.patch({
  "validFrom": "string",
  "validTo": "string",
  "workingTimeModelId": "string",
  "weeklyHours": 0,
  "partTimePercent": 0,
  "collectiveAgreementId": "string",
  "approvalState": "DRAFT",
  "notes": "string",
  "worksCouncilCaseRef": "string",
  "rejectionReason": "string",
  "meetingDate": "string"
});

Response codes

HTTP Meaning
200 Default Response

Search