Approve or deny time off

Approve or deny a time off request waiting for you.

POST https://cotlet.dev/api/v1/bamboohr/requests/{request_id}/time-off-request/decide

write Confirm

Approves or denies one request from your inbox. In a multi-level approval workflow the request moves on to the next approver after your approval, and the employee is told only after the last one; a denial ends the process and the employee is told. As an admin who is not the next approver, set override to use Approve Anyway. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decide_time_off_request
NameTypeDescription
request_id string required string Request ID from list_pending_time_off_requests.
decision string required string 'approve' or 'deny'.
override boolean boolean true uses Approve Anyway as an admin when you are not the next approver. Default: false.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/bamboohr/requests/request_8c41d2/time-off-request/decide \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"decision":"decision"}'
Python
result = client.call("bamboohr", "decide_time_off_request", {"request_id":"request_8c41d2","decision":"decision"})
Node.js
const result = await cotlet.call('bamboohr', 'decide_time_off_request', {"request_id":"request_8c41d2","decision":"decision"});
CLI
cotlet call bamboohr decide_time_off_request --data '{"request_id":"request_8c41d2","decision":"decision"}'

Example response

JSON

{
  "request_id": "to_5521",
  "employee": "Lena Ortiz",
  "decision": "approved",
  "next_step": "Level 2 of 2"
}

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.