POST /v1/work-planning/revoke-approval POST /v1/work-planning/revoke-approval
Revoke the approval of a previously approved week so entries become editable again (back to DRAFT). Accepts employeeId (ADR 0123) ODER userId (Legacy). Requires work_schedule_approve.
Request body
Naam Type Beschrijving userIdstringEmployee user ID whose week approval to revoke employeeIdstringemployee_profile._id (bevorzugt) weekStartvereist string<date>
Voorbeeld
curl -X POST https://api.codemeta-os.de/v1/work-planning/revoke-approval \
-H "X-Tenant-Id: $TENANT " \
-H "Content-Type: application/json" \
-b cookies.txt \
-d '{
"userId": "string",
"employeeId": "string",
"weekStart": "string"
}' const result = await cm.work - planning. post ({
"userId" : "string" ,
"employeeId" : "string" ,
"weekStart" : "string"
});
Antwoordcodes
HTTP
Betekenis
200
Default Response
Beschrijving volgt
Deze operatie heeft nog geen gecureerde annotatie. De inhoud wordt bij de volgende documentatie-update aangevuld.