Approve work sessions in a day range. Never your own (law 20).
Performs the approve operation for the work sessions feature.
Scope: attendance:write
Min role: MANAGER or higher
Endpoint: POST /api/hr/attendance/approve
Example request
curl -X POST "https://app.guliel.com/api/hr/attendance/approve" \
-H "Authorization: Bearer $GULIEL_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"organizationId": "abc123",
"from": "string",
"to": "string"
}'Request body
organizationIdreqstringcounterpartyIdstringfromreqstringtoreqstring
Response (200/201)
approvedreqintegerskippedreqintegerSessions left unapproved: the approver's own, and rows in a locked or already-paid month.
Error responses
400 | Validation |
401 | Unauthenticated |
403 | Forbidden |
429 | RateLimit |
500 | Internal |