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.
×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?
Apparently there is ZERO documentation on this but the answer is here:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.