I sent a PUT request to a Confluence page using <ac:task>
, but after refreshing the page, when I try to check the checkbox, I get an error saying that the changes cannot be saved. However, if I manually click the "Edit" button in the UI and then update the page, it works fine.
What I want is to create and update the page using the API without needing any manual UI actions.
I suspect that this might be due to the absence of a task ID. So, I checked the following:
POST
request to ../{page_id}/publish
after the PUT
request, but even then, the task ID was still missing in the GET response.Does this mean that the API alone does not generate a task ID?
Is there a way to resolve this?
Here’s the task-related part of my request:
<ac:task-list>
<ac:task>
<ac:task-status>incomplete</ac:task-status>
<ac:task-body> ... </ac:task-body>
</ac:task>
</ac:task-list>