Content restrictions
Add restrictions
Changed onAdds the supplied users and groups to the content's restrictions, preserving existing restrictions. Use read for viewing restrictions and update for editing restrictions. Omitted or empty user and group lists add no restrictions.
Permissions required: Permission to edit the content.
post/wiki/rest/api/content/{id}/restriction
Request
- Base URLhttps://your-domain.atlassian.net
- URLhttps://your-domain.atlassian.net/wiki/rest/api/content/{id}/restriction
- Auth
- HTTP basic
- or OAuth 2Authorization code: https://auth.atlassian.com/authorizeToken URL: https://auth.atlassian.com/oauth/token scopes: write:confluence-content
Path parameters
idstring required
The ID of the content to add restrictions to.
Query parameters
expandstring[]
A multi-value parameter indicating which properties of the content restrictions (returned in response) to expand.
- restrictions.user returns the users that the restrictions apply to. Expanded by default.
- restrictions.group returns the groups that the restrictions apply to. Expanded by default.
- content returns the piece of content that the restrictions are applied to.
Request body
Response
Returned if the requested restrictions are added.
Changes
- breaking
removed
subschema #1subschema #2from the request bodyoneOflist - info
added
subschema #1subschema #2to the request bodyoneOflist - info
added the non-success response with the status
- breaking