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
| Name | Type | Description |
|---|---|---|
| request_id string required | string | Exchange id from list_exchange_requests. |
Request
curl -X POST https://cotlet.dev/api/v1/shiftbase/requests/2290/exchange-request/approve \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("shiftbase", "approve_exchange_request", {"request_id":"2290"}) const result = await cotlet.call('shiftbase', 'approve_exchange_request', {"request_id":"2290"}); cotlet call shiftbase approve_exchange_request --data '{"request_id":"2290"}' Example response
{
"request_id": "2290",
"status": "approved",
"shift": {
"id": "90421",
"date": "2026-10-25",
"start": "16:00",
"end": "23:00",
"employee": "Sam Okafor"
}
}