The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Sukh
Contributor
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Sukh
Contributor
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.

TAGS
AUG Leaders

Atlassian Community Events