Approve shift exchange

Approve an accepted shift exchange.

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

write Confirm

Moves the shift to the colleague who accepted it and returns the shift with its new owner. Your role needs the Approve exchanges permission. Both employees are notified. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: approve_exchange_request
NameTypeDescription
request_id string required string Exchange id from list_exchange_requests.

Request

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

Example response

JSON

{
  "request_id": "2290",
  "status": "approved",
  "shift": {
    "id": "90421",
    "date": "2026-10-25",
    "start": "16:00",
    "end": "23:00",
    "employee": "Sam Okafor"
  }
}

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.