curl --request PATCH \
--url https://api.plane.com/v1/leave-policies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": {},
"status": "<string>",
"type": "<string>",
"effect": "<string>",
"unit": "<string>",
"applies": {},
"period": {},
"accrual": {},
"carryover": {},
"balance": {},
"usage": {},
"payout": {}
}
'Update a custom leave policy.
curl --request PATCH \
--url https://api.plane.com/v1/leave-policies/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": {},
"status": "<string>",
"type": "<string>",
"effect": "<string>",
"unit": "<string>",
"applies": {},
"period": {},
"accrual": {},
"carryover": {},
"balance": {},
"usage": {},
"payout": {}
}
'null to clear it.draft, active, or archived.vacation or sick_time_off.set or add policy.days or hours.null to clear it.null for unlimited leave.null for use-it-or-lose-it.null for unlimited leave.Was this page helpful?