Remove Roles from Taxonomy

Remove role assignments from a taxonomy.

Endpoint

DELETE /v1/workspaces/{workspaceId}/taxonomy/{taxonomyId}/roles

Request

curl -X DELETE \
  'https://api.sharely.ai/v1/workspaces/{workspaceId}/taxonomy/{taxonomyId}/roles' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
  -H 'Content-Type: application/json' \
  -H 'organizationid: your-organization-id' \
  -d '{
    "roleIds": ["role-uuid-1", "role-uuid-2"]
  }'

Body Parameters

ParameterTypeRequiredDescription
roleIdsarray of UUIDsYesArray of role UUIDs to remove

Response

{
  "success": true,
  "removedCount": 2
}

Related Endpoints