Forums

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

update page via rest api

Piotr Nowak June 6, 2019

Hello,
Our user have problem with update the page via rest api.
- When Confluence page is created from template using REST API, HTML macro with java script code built into template is available in 1st page version
- When same Conlfuence page is updated with REST API, HTML macro content disappears - version 2 does not contain java script code (only empty HTML macro)

According to that I have 2 questions:
1. Is this security rule built into Conlfuence?
2. Is Confluence administrator able to turn this functionality on?

1 answer

0 votes
Pavel Potcheptsov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2019

Hi.

I suspect that when you update the page second time then you don't have your java script code in page's body.

Updating page won't save previous content while adding new.

You have to get page content from current version, add new content to extracted one or modify existing content and then post updated content to the server.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events