1. Docs
  2. API Reference
  3. Deactivate an identity

Deactivate an identity

POST/portal/v1/accounts/{accountSlug}/applications/{appSlug}/identities/{id}/deactivate

Authentication

  • Bearer Token Authorization

    JWT access token

Path Parameters

Name Required Type Description
idRequiredstring

Code samples

cURLJavaScriptPythonGo
curl -X POST "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}/identities/value/deactivate" \
  -H "Authorization: Bearer $CANOPY_TOKEN"

Responses

200 Identity deactivated
{
  "message": "string"
}

application/json

  • messagestring*
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 Identity not found

Returned object

On this page

Related endpoints

GETList identities in Application
POSTCreate an identity
GETList identities with their role assignments
GETGet Application identities summary
POSTBulk-create identities
POSTRecord a bulk-import wizard completion
GETGet an identity
PATCHUpdate an identity
DELETERemove an identity
GETGet identity detail with role assignments
POSTActivate an identity
GETGet identity's role assignments
GETGet identity's effective permissions