Skip to main content

Add or remove the permission tree for a subject (v2)

POST 

/v2/spaces/:spaceId/permissionTree/:subject:addOrRemove

Preview: The API is in development or testing phases and the interface could still change slightly.

Grants or revokes permissions on specific resources and/or group memberships for a subject within a space. The request may contain an 'add' operation, a 'remove' operation, or both. Each operation can specify a list of resources (with scopes) and a list of permission groups. The same scope on the same resource cannot appear in both 'add' and 'remove' in a single request. All referenced resources must be associated with the given space, and all scopes must be within the configured scopes for the resource type; otherwise a 400 is returned. After applying the changes, the updated permission tree for the subject is returned.
Scope: space_foundation_manage_users, partner_store

Request

Responses

No Content