Space Roles

Set space role assignments

Sets space role assignments as specified in the payload. For each entry, if roleId is provided the principal is assigned to that role. If roleId is omitted, the role assignment for that principal is removed, if it exists.

Available on tenants with Role-Based Access Control.

Permissions required: Permission to manage roles in the space.

post/spaces/{id}/role-assignments

Request

  • Base URL
    https://no-default/wiki/api/v2
  • URL
    https://no-default/wiki/api/v2/spaces/{id}/role-assignments
  • Auth
    • HTTP basic
    • or OAuth 2
      Authorization code: https://auth.atlassian.com/authorize
      Token URL: https://auth.atlassian.com/oauth/token scopes: write:space.permission:confluence

Path parameters

idinteger required

The ID of the space for which to retrieve assignments.

Request body

roleIdstring

The role to which the principal is assigned.

Response

Returned if the requested update to space role assignments succeeds in its entirety.

Changes

No recorded changes to this operation across all 5 revisions of this API.