Skip to main content
POST
Adjust an agent's leave balance

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

agentId
string
required

Body

application/json
hours
number
required

Signed hours to apply — positive credits, negative debits. Must be non-zero and within ±100000.

leave_type
string
default:pto
Required string length: 1 - 64
reason
string
Maximum string length: 500

Response

Balance adjusted; adjustment ledger entry created