curl --request POST \
--url https://api-{region}.sesametime.com/overtime-policies/v1/permit-adjustments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"amountSeconds": 8100,
"externalReference": "EPS-2026-000123",
"note": "Tardes viernes 14/11"
}
'{
"data": {
"adjustmentId": "6c1f2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"year": 2026,
"amountSeconds": 8100,
"externalReference": "EPS-2026-000123",
"note": "Tardes viernes 14/11",
"origin": "api_public",
"grantedAfterSeconds": 11700,
"createdAt": "2026-11-17T10:30:00+00:00"
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"total": 1,
"perPage": 1
}
}Add or subtract time to the hours compensation permit of an employee
Adds (positive amountSeconds) or subtracts (negative amountSeconds) time to the granted time of an hours compensation absence type (permit) of one employee of the company of the token, for one year. It does not change the overtime balance of the employee and works whether or not the employee has an overtime policy. The granted time of a permit is the time compensated from the overtime policy (never below 0 on its own) plus every adjustment, so adjustments can leave it negative, without lower limit; with less than 1 minute available the employee cannot request time of that permit.
Idempotency: externalReference is mandatory and unique per company. Sending it again with the same data returns the original adjustment without applying it again; sending it with other data is rejected with 409 permit_adjustment_reference_conflict.
The change is shown in the history of the permit with its note and origin; the employee is not notified. The granted time read from the absences endpoints is updated asynchronously, a few seconds after the response. To correct an adjustment, send another one with the opposite sign and a new reference.
curl --request POST \
--url https://api-{region}.sesametime.com/overtime-policies/v1/permit-adjustments \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"amountSeconds": 8100,
"externalReference": "EPS-2026-000123",
"note": "Tardes viernes 14/11"
}
'{
"data": {
"adjustmentId": "6c1f2a3b-4d5e-4f60-8a7b-9c0d1e2f3a4b",
"employeeId": "550e8400-e29b-41d4-a716-446655440000",
"absenceTypeId": "199932f8-c295-42b9-8588-b5ec181a3767",
"year": 2026,
"amountSeconds": 8100,
"externalReference": "EPS-2026-000123",
"note": "Tardes viernes 14/11",
"origin": "api_public",
"grantedAfterSeconds": 11700,
"createdAt": "2026-11-17T10:30:00+00:00"
},
"meta": {
"currentPage": 1,
"lastPage": 1,
"total": 1,
"perPage": 1
}
}Authorizations
Body
Response
Adjustment applied, or the original adjustment when the same externalReference was already used with the same data (idempotent retry: nothing is applied twice). The status is 200 (not 201) because the controller answers through fromRawData.
The granted time shown by the absences endpoints (GET /schedule/v1/employees/{employeeId}/hours-compensation-balances, GET /schedule/v1/absence-calendars/employees/{employeeId}/totals) is updated asynchronously, a few seconds after this response; grantedAfterSeconds already carries the resulting value.
Was this page helpful?