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

cloud rest api - import list or json data line by line to page

Sukhjinder Bhullar January 22, 2020

Hi,

I am trying to find out way to import some of list or json data to confluence page. 

 

e.g. 

 

id, name, sal 

1, ss, 20 

 

I want to publish this data to confluence as a table. 

 

Is there a way to do it using requests module and confluence cloud rest api 

 

Regards

Sukh

2 answers

0 votes
Sukhjinder Bhullar March 26, 2020

Thanks Lenin for reply. I have got it worked. 

0 votes
Lenin Raj
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 23, 2020

Hi @Sukhjinder Bhullar 

The REST API has different types of view such as `styled_view`, `export_view`. I would recommend you create a page manually in the desired format with the table and then use "Get content" API and see how the response is.

Then you can use the same format to create new content using "Create content" API.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events