Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
employeeId
string<uuid>
required

Employee whose permit is adjusted. Must belong to the company of the token.

absenceTypeId
string<uuid>
required

Hours compensation absence type to adjust. Must be active and assigned to the employee (see GET /schedule/v1/employees/available-hours-compensation-types).

amountSeconds
integer
required

Seconds to add (positive) or subtract (negative). Must not be 0.

Example:

8100

externalReference
string
required

Reference of the movement in the system of the integrator, unique per company. It makes retries safe (see the idempotency note above).

Required string length: 1 - 100
Example:

"EPS-2026-000123"

year
integer

Year of the permit balance to adjust. Optional: the current year when omitted. Any past or future year is accepted.

Example:

2026

note
string | null

Free text stored with the adjustment and shown in the history of the permit

Maximum string length: 255
Example:

"Tardes viernes 14/11"

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.

data
object
required
meta
object
required