restrictions:
curl --request GET --url https://confluence.mydomain.com/rest/api/content/1009950485/restriction/byOperation
{"read":{"operation":"read","restrictions":{"user":{"results":[],"start":0,"limit":200,"size":0},"group":{"results":[],"start":0,"limit":200,"size":0}},"_links":{"self":"https://confluence.mydomain.com/rest/api/content/1009950485/restriction/byOperation/read"},"_expandable":{"content":"/rest/api/content/1009950485"}},
"update":{"operation":"update","restrictions":{"user":{"results":[],"start":0,"limit":200,"size":0},"group":{"results":[],"start":0,"limit":200,"size":0}},"_links":{"self":"https://confluence.mydomain.com/rest/api/content/1009950485/restriction/byOperation/update"},
"_expandable":{"content":"/rest/api/content/1009950485"}},"_links":{"base":"https://confluence.mydomain.com","context":"","self":"https://confluence.mydomain.com/rest/api/content/1009950485/restriction/byOperation"}}
Does it mean no restrictions?
then use curl to copy a page
curl --request POST --url 'https://confluence.mydomain.com/rest/api/content/1009950485/copy' --header 'Accept: application/json;charset=UTF-8' --header 'Content-Type: application/json' --data '{ "copyAttachments": true, "copyPermissions": true, "copyProperties": true, "copyLabels": true, "copyCustomContents": true, "destination": { "type": "space", "value": "Test" }, "pageTitle": "CopyPage", }' --user username
{"message":"null for uri: https://confluence.mydomain.com/rest/api/content/1009950485/copy","status-code":404}
Copying this page on web is working well.
Any help is appreciated.