Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can i edit few lines on confluence page, using rest API

Shashikumar October 25, 2021

I want to append content to confluence page, but the put command is updating entire page.

1 answer

1 vote
Kishan Sharma
Community Champion
October 25, 2021

Hi @Shashikumar Have you tried reading the entire page body, storing it in a variable and then append the new lines to it and pass it back to PUT command ?

Shashikumar October 25, 2021

If i want to update few small things there, need to pull entire page content, search and update it.

 

Is there any better solution for this

Kishan Sharma
Community Champion
November 7, 2021

That's right, there's no other shortcut here. Are you looking for search and replace some text in your pages?  In that case, there are plenty of plugins available on Atlassian Marketplace which you can explore to see if that meets your requirement.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events