API · v1 · stable
CODEMETA OSDeveloper Center
FR
Ouvrir la console

Patch working_time_assignment

PATCH/v1/working_time_assignments/{id}

JSON Merge Patch update.

Modèle de données

Cette opération porte sur l'entité Working Time Assignment (working_time_assignment). Les 16 champs (type, validation, caractère obligatoire, relations) figurent dans la référence du schéma.

  • Champs obligatoires : scope, scopeId, workingTimeModelId, validFrom, validTo
  • Gérés par le serveur : _id, schema, schemaVersion, tenantId, version, createdAt, updatedAt, createdBy, updatedBy, deletedAt, deletedBy, approvalState, approvedAt, approvedBy, submittedForApprovalAt, submittedBy. La plateforme attribue ces champs ; ils sont ignorés dans la requête.

Corps de la requête

NomTypeDescription
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.

Paramètres de chemin

NomTypeDescription
idobligatoirestring

Exemple

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"
});

Codes de réponse

HTTP Signification
200 Default Response

Recherche