Decide remote work request

Approves or rejects a pending remote work request.

POST https://cotlet.dev/api/v1/bizneo/requests/{request_id}/remote-work-request/decide

write Confirm

Does what approve or reject does under Time > Requests, for the time manager or the time module admin. The employee is notified, and an approved day shows an icon in My Timetable. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decide_remote_work_request
NameTypeDescription
request_id string required string request_id from list_remote_work_requests.
decision enum required enum approve or reject.

Request

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

Example response

JSON

{
  "request_id": "rw_5521",
  "state": "approved",
  "decided_by": "Carlos Vega"
}

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.