Hey there,
By issuing the following:
curl --request POST \
--url https://example-domain.atlassian.net:443/wiki/rest/api/content/X/pagehierarchy/copy/ \
--header 'accept: application/json' \
--header 'authorization: Basic topsecret' \
--header 'content-type: application/json' \
--data '{ "copyAttachments": true, "copyPermissions": true, "copyProperties": true, "copyLabels": true, "originalPageId": "X", "destinationPageId": "Y" }'
… where X is the page id that I want to copy and Y is the parent page id to where I want the copied new page to be created…
I get back “500 Internal Server Error”:
{ "statusCode": 500, "message": "java.lang.NullPointerException: null" }
That doesn’t help me understand what/if am I doing wrong.
Any ideas how to understand what’s wrong with the request?
Thanks,
Ali
