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

Parameters: decline_request
NameTypeDescription
request_id string required string Request id from list_pending_requests.
reason string string Reason the employee reads in the decline.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/timetastic/requests/request_8c41d2/decline \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("timetastic", "decline_request", {"request_id":"request_8c41d2"})
Node.js
const result = await cotlet.call('timetastic', 'decline_request', {"request_id":"request_8c41d2"});
CLI
cotlet call timetastic decline_request --data '{"request_id":"request_8c41d2"}'

Example response

JSON

{
  "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"
}

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.