Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Saquib Fraz January 14, 2020

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

1 vote
Answer accepted
Lenin Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 14, 2020

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)

Saquib Fraz January 16, 2020

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

Anderson Baum Barbosa February 20, 2023

Hi @Saquib Fraz , how did you solve this? I have a similar requirement and trying to figure out how to get the current content and change it accordingly to be updated.

Thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events