POST /v1/work-planning/approve-week POST /v1/work-planning/approve-week
Approve a week of submitted work schedule entries (team leader). Accepts employeeId (kanonisch nach ADR 0123, funktioniert auch für Mitarbeitende ohne Login-Account) ODER userId (Legacy).
Cuerpo de la solicitud
Nombre Tipo Descripción userIdstringEmployee user ID whose week to approve employeeIdstringemployee_profile._id (ADR 0123, bevorzugt) weekStartobligatorio string<date>
Ejemplo
curl -X POST https://api.codemeta-os.de/v1/work-planning/approve-week \
-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.