Deny a request

Deny an absence request, shift booking, swap or unassignment request.

POST https://cotlet.dev/api/v1/quinyx/requests/{request_id}/deny

write Confirm

Denies the request and removes it from Needs Approval; the schedule stays as it was. For swaps and unassignment requests, Quinyx shows your comment to the employee in the Qmail they receive and records it in the audit log. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: deny_request
NameTypeDescription
request_id string required string Id from list_approval_requests.
comment string string The reason. Employees read it, so write it for them.

Request

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

Example response

JSON

{
  "request_id": "77325",
  "category": "absence_request",
  "status": "denied",
  "employee": "Sam Okafor",
  "comment": "Stocktake week, no absences possible 9 to 13 Nov."
}

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.