Rest Api to append content to existing confluence page

Hi everyone,

I have one page in confluence, I want to update page without deleting old page content, but its showing error like response=’{“statusCode”:409,“data”:{“authorized”:false,“valid”:true,“allowedInReadOnlyMode”:true,“errors”:,“successful”:false},“message”:“Version must be incremented on update. Current version is: 15”,“reason”:“Conflict”}. Can someone help me pls.

Hi @Dastagiri

The version must be increased when editing the page (no matter if you are editing only one letter or adding something to it)

High-level:

  1. get page - GET /rest/api/content/
  2. process new page content (include it in your case) + increment version 15 + 1)
  3. call page (edit API) - PUT /rest/api/content/

Cheers
Adam

Thank you so much for your quick reply.