1. Docs
  2. API Reference
  3. Remove user from Account

Remove user from Account

DELETE/portal/v1/accounts/{accountSlug}/users/{id}

Authentication

  • Bearer Token Authorization

    JWT access token

Path Parameters

Name Required Type Description
idRequiredstring

Code samples

cURLJavaScriptPythonGo
curl -X DELETE "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/users/value" \
  -H "Authorization: Bearer $CANOPY_TOKEN"

Responses

204 User removed (assignments revoked)
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)
404 User not found
On this page

Related endpoints

GETList users in Account
GETGet Account users summary
GETGet a user
POSTActivate a user
POSTDeactivate a user