Decline a leave request
Decline one pending request, with an optional reason.
POST https://cotlet.dev/api/v1/timetastic/requests/{request_id}/decline
write Confirm
Returns the request with the status Declined and the reason. The employee is told right away. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| request_id string required | string | Request id from list_pending_requests. |
| reason string | string | Reason the employee reads in the decline. |
Request
curl -X POST https://cotlet.dev/api/v1/timetastic/requests/request_8c41d2/decline \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("timetastic", "decline_request", {"request_id":"request_8c41d2"}) const result = await cotlet.call('timetastic', 'decline_request', {"request_id":"request_8c41d2"}); cotlet call timetastic decline_request --data '{"request_id":"request_8c41d2"}' Example response
{
"request_id": "5128861",
"employee": "Tomas Lind",
"leave_type": "Holiday",
"from": "2026-12-07",
"to": "2026-12-11",
"days": 5,
"status": "Declined",
"reason": "Planning week, the whole team is needed",
"declined_by": "Priya Nair"
}