The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Page Level Restrictions with Confluence REST API (6.10.1)

Bill
October 10, 2018

Either on page creation (also with the REST API), or after the fact (I'm indifferent on the method)

 

Can someone post an example payload?

 

I've attempted to do this on page creation

{
"type": "page",
"space": {
"key": "SPACEKEY"
},
"title": "My Page",
"body": {
"storage": {
"value": "Some Content",
"representation": "storage"
}
},
"restrictions": {
"user": [
{
"type": "known",
"username": "johndoe"
}
]
}
}

 

I've also attempted to do this after the fact with the method shown here: (https://community.atlassian.com/t5/Confluence-questions/How-can-i-set-page-restrictions-read-update-with-Confluence/qaq-p/694096)

using the suggestion from @Hasnae with no luck. (The endpoint suggested doesn't actually exist.)

 

How does one set a page level restriction to a specific user with the API?

1 answer

0 votes
Bill
October 11, 2018

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events