Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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