I'm getting a 403 response when trying to create a page with the confluence cloud api. This was previously working, but suddenly I am getting the following response:
{
"statusCode": 403,
"data": {
"authorized": false,
"valid": true,
"errors": [],
"successful": false
},
"message": "Could not create content with type page"
}I am making a POST request to https://<mydomain>.atlassian.net/wiki/rest/api/content/ using basic auth for a user that is able to create pages in this space through the UI (I've verified logging in with that username/pass, and am able to create a page in the space). Here is the body of my request:
{
"ancestors": [
{
"id": "602648"
}
],
"title": "Test",
"space": {
"key": "TOC"
},
"type": "page",
"body": {
"storage": {
"representation": "storage",
"value": "Test"
}
}
}The ancestor ID is correct, as well as the space key. Is there something else I'm doing wrong?