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

How do I update a update a table on a confluence page via API so that it includes HTML formatting?

Duane Kuroda March 20, 2024

I am able to update a confluence page via REST API with no problem. The problem arises when I have attempted to add background color to a cell or modify the column widths.

I have saved the html that I want send to confluence to a file, and when I open it, it renders correctly. However, when I view source for the page in confluence, my style tags are removed. i.e. the html file saved will include 

style="background-color: yellow"
but the confluence page that responded w/response code 200 (and includes all the right data in the table) is missing the style data.
For the style, I attempted to follow the suggestions here, but it turns out that my instance does not have the html macro turned on.
For adjusting column sizes (directly or proportionately), I followed the example here, but that did not have any impact, either.
Is there a reference, sample code, or other tutorial on how to use the REST API to update pages and apply HTML or rich-text formatting for tables?

0 answers

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events