Update time off end date (absence / holiday)
Scope: team:time-off.write https://api.alladdin.com/api/v2/employees/{employeeId}/time-offs/{timeOffId}
Updates the end date of a time off request (absence, holiday, vacation, sick leave, etc.). Only end_date is accepted; all other fields in the body are ignored.
Parameters
Path parameters
employeeId string required
Employee ID (24-character hexadecimal ObjectId)
timeOffId string required
Time off request ID (24-character hexadecimal ObjectId)
Request body
object end_date string<date> required
New end date (YYYY-MM-DD)
Request
import requests
url = "https://api.alladdin.com/api/v2/employees/507f1f77bcf86cd799439012/time-offs/507f1f77bcf86cd799439011"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"end_date": "2026-06-07"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Success responses
204 Absence / time off end date updated
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Time off not found application/json 422 Invalid time off data application/json 429 Rate limit exceeded application/json
← PreviousCreate a time off request (absence / holiday) →
Next →List time off requests for an employee (absences / holidays) →
