Forums

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

[Confluence 8.5. Datacenter] "/rest/api/content/{id}/restriction" return status 405

Matthias Hennicke
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 14, 2025

Hi folks,

I would like to copy the page-restrictions from one confluence-page to another page in same space.

I found this support-page for api definition. It is describe, that output from get is useable to put method.

 

 

curl --request GET --header "Accept: application/json" --header "Content-Type: application/json" --header "Authorization: Bearer xxxx"  "https://confluence.xxxxxxxxxx.xxx/rest/api/content/1234567/restriction/byOperation" | curl --request PUT --header "Accept: application/json" --header "Content-Type: application/json" --header "Authorization: Bearer xxxxx" -v -d @- "https://confluence.xxxxxxxx.xxx/rest/api/content/987654321/restriction"

< HTTP/1.1 405

 

Has anyone an idea to fix it?? Where I can get a fulllevel example-code?

 

Best regards

 

1 answer

0 votes
Matthias Hennicke
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 14, 2025

I found https://community.developer.atlassian.com/t/remove-page-restrictions-via-rest-api/86971/2 but changing of experimental api does return status 500.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events