Decline shift exchange

Decline an accepted shift exchange.

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

write Confirm

Rejects the exchange and leaves the shift with its original owner. Both employees are notified. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: decline_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/request_8c41d2/exchange-request/decline \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("shiftbase", "decline_exchange_request", {"request_id":"request_8c41d2"})
Node.js
const result = await cotlet.call('shiftbase', 'decline_exchange_request', {"request_id":"request_8c41d2"});
CLI
cotlet call shiftbase decline_exchange_request --data '{"request_id":"request_8c41d2"}'

Example response

JSON

{
  "request_id": "2291",
  "status": "declined"
}

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.