I know that a space can be created via the REST API, but what about changing the permissions for the space? Is there any way to do that from an external call? Or am I going to need a plugin to do this (either my own or possibly Bob Swift's CLI)?
Community moderators have prevented the ability to post new answers.
Yes you can edit/update page restrictions from the REST API:
https://docs.atlassian.com/confluence/REST/latest/
parameter | value | description |
---|---|---|
id | the id of the content |
Returns info about all restrictions by operation
parameter | value | description |
---|---|---|
expand | Default:update.restrictions.user,read.restrictions.group,read.restrictions.user,update.restrictions.group | a comma separated list of properties to expand on the content properties. Default value: group. |
available response representations:
Isn't that just a GET? That couldn't be used to update restrictions, could it? And even if it could, would this be able to update space permissions (not page-specific restrictions)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems I miss spoke, the SOAP API will allow you to do it, not the REST API.
https://developer.atlassian.com/confdev/confluence-rest-api/confluence-xml-rpc-and-soap-apis
Seems someone else has already asked a similar question which may be helpful:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ah, yeah I don't think I want SOAP since it's been deprecated. Looks like I may be stuck with using a plugin (either purchasing one or writing my own). Thanks for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to achive the same https://answers.atlassian.com/questions/43579758
Seems the only way is (java) or the Scriptrunner from Adaptavist, but the latter does not have good documentation. And Confluence 6 does not seem (at the moment) to have more REST
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.