Using the following with address and PAK changed
PAK works
curl -u 'lee_@blarblar.com:ATA_PAK_blar_blar' -X POST -H 'Content-Type: application/json' --data '{"type":"page","title":"FPGA Tree","space":{"key":"TREE"},"ancestors": [ {"id": "1962_some_existing_page678on_home_page" }],"body":{"storage":{"value":"<p>This is <br/> a new page</p>"}}}' --url 'https://blarblar.atlassian.net/wiki/rest/api/content'
This is as close to the non cloud, new page as a child of another examples. https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/
I get the following error.
Getting some sort of Authorization failure? But my PAK is working as the access time go's up when I use it. Error reported.
* Connection #0 to host blarblar.atlassian.net left intact
{"statusCode":403,"data":{"authorized":false,"valid":true,"errors":[],"successful":false},"message":"com.atlassian.confluence.api.service.exceptions.PermissionException: Could not create content with type page"}
Think this means I'm not specifying my page correctly?
Docs say you just add an "ancestors": [ {"id": "12345_page number" }] to the page of interest.
Any help would be appreciated to get the basics working please.
thanks
Lee