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<span> </span>"Accept: application/json" --header<span> </span>"Content-Type: application/json" --header<span> </span>"Authorization: Bearer xxxx" "<a href="https://confluence.xxxxxxxxxx.xxx/rest/api/content/1234567/restriction/byOperation" rel="noopener nofollow noreferrer" target="_blank">https://confluence.xxxxxxxxxx.xxx/rest/api/content/1234567/restriction/byOperation</a>" | curl --request PUT --header<span> </span>"Accept: application/json" --header<span> </span>"Content-Type: application/json" --header<span> </span>"Authorization: Bearer xxxxx" -v -d @-<span> </span>"<a href="https://confluence.xxxxxxxx.xxx/rest/api/content/987654321/restriction" rel="noopener nofollow noreferrer" target="_blank">https://confluence.xxxxxxxx.xxx/rest/api/content/987654321/restriction</a>"
< HTTP/1.1 405
Has anyone an idea to fix it?? Where I can get a fulllevel example-code?
Best regards