1. Docs
  2. API Reference
  3. Bulk remove assignments

Bulk remove assignments

POST/api/v1/assignments/bulk-remove

Authentication

  • Bearer Token Authorization

    JWT access token

  • API Key X-API-Key

    API key for management-tier access

Request body

  • assignment_idsstring[]*

Code samples

cURLJavaScriptPythonGo
curl -X POST "https://api.canopy.dev/api/v1/assignments/bulk-remove" \
  -H "X-API-Key: $CANOPY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "assignment_ids": [
      "string"
    ]
  }'

Responses

204 Assignments removed
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)
On this page

Related endpoints

GETList all assignments across the Application
GETGet App-wide assignment summary
POSTAssign a role to an identity at a node
PATCHUpdate an assignment
DELETERemove an assignment
POSTBulk change role on assignments
POSTBulk-create role assignments. All-or-nothing: any failure rolls back the entire batch