1. Docs
  2. API Reference
  3. Delete a deny

Delete a deny

DELETE/api/v1/denies/{id}

Deletes a deny: access returns to whatever grants allow, on Canopy's routes from the next request and in an SDK within its cache window. Writes a deny.deleted audit row and webhook event (cause: deleted). Requires deny.manage.

Authentication

Bearer TokenAuthorization Option A

JWT access token. Never send alongside X-API-Key: a request carrying both is refused.

API KeyX-API-Key Option B

API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.

Path Parameters

idstring Required

Responses

The deny was deleted

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*
Request
curl -X DELETE "https://auth.canopy-io.com/api/v1/denies/value" \
  -H "X-API-Key: $CANOPY_API_KEY"
Response
HTTP/1.1 204 The deny was deleted

(empty body)
Related endpoints
GETList denies
POSTCreate a deny
POSTPreview a deny
GETGet a deny
GETWhat a deny refuses today
Was this page helpful?

Tell us how we can improve this guide.