It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

how to update the value in confluence page table by using REST API

I want to the update the confluence page table, by using

curl -X PUT -H application/json -d '{ "type":"page"

"title":"My Page"

"body":{
"storage":{
"value":"<table> my table content </table>", 

the put cmd replaces the entire page content instead of updating the values in the page.

For ex- If I pass another curl -X PUT -H application/json -d '{ }' with same page id and different values or parameters the table get replaced with the new value.

 

Kindly suggest

 

1 answer

1 accepted

0 votes
Answer accepted

I think partially updating a page may not be possible. However you can get the current content using Get content (https://developer.atlassian.com/cloud/confluence/rest/#api-api-content-get) and submit the entire page with the modified "table" content via Update content (https://developer.atlassian.com/cloud/confluence/rest/#api-api-content-id-put)

Thanks for the update @Lenin_Raj_Rajasekaran , Now we can move forward with another approach.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

294 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you