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>
Probably you'd need to use the v2 version of the API: https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-page/#api-pages-id-put
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.