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
| Name | Type | Description |
|---|---|---|
| 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 -X POST https://cotlet.dev/api/v1/quinyx/requests/request_8c41d2/deny \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("quinyx", "deny_request", {"request_id":"request_8c41d2"}) const result = await cotlet.call('quinyx', 'deny_request', {"request_id":"request_8c41d2"}); cotlet call quinyx deny_request --data '{"request_id":"request_8c41d2"}' Example response
{
"request_id": "77325",
"category": "absence_request",
"status": "denied",
"employee": "Sam Okafor",
"comment": "Stocktake week, no absences possible 9 to 13 Nov."
}