Approve holiday request

Approves a holiday request that is assigned to you.

POST https://cotlet.dev/api/v1/peoplehr/requests/{request_id}/holiday-request/approve

write Confirm

Approves the request as the account that is signed in, which must be its approver. PeopleHR then tells the employee in Feed. A decided request cannot be changed: it has to be deleted and submitted again. A request that is already decided fails with an error. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_holiday_request
NameTypeDescription
request_id string required string Request ID from list_holiday_requests.
comment string string Comment the employee sees with the decision.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/peoplehr/requests/hol-48210/holiday-request/approve \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"comment":"Approved, enjoy the break."}'
Python
result = client.call("peoplehr", "approve_holiday_request", {"request_id":"hol-48210","comment":"Approved, enjoy the break."})
Node.js
const result = await cotlet.call('peoplehr', 'approve_holiday_request', {"request_id":"hol-48210","comment":"Approved, enjoy the break."});
CLI
cotlet call peoplehr approve_holiday_request --data '{"request_id":"hol-48210","comment":"Approved, enjoy the break."}'

Example response

JSON

{
  "request_id": "hol-48210",
  "employee": "Priya Nair",
  "start_date": "2026-11-16",
  "end_date": "2026-11-18",
  "status": "Approved",
  "decided_by": "Dana Reyes",
  "comment": "Approved, enjoy the break."
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.