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.
Cuerpo de la solicitud
Nombre Tipo Descripción userIdstringEmployee user ID whose week approval to revoke employeeIdstringemployee_profile._id (bevorzugt) weekStartobligatorio string<date>
Ejemplo
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"
});
Códigos de respuesta
HTTP
Significado
200
Default Response
Descripción pendiente
Esta operación todavía no tiene una anotación revisada. El contenido se añadirá en la próxima actualización de la documentación.