Forums

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

rest api to update content from csv file

Dastagiri February 24, 2022

Hi guys, I am trying to get confluence page content from csv file. I used below code.
curl -D- \
-u admin:admin \
-X PUT \
-H 'X-Atlassian-Token: nocheck' \
-F 'file=@"example.csv"' \
-F 'minorEdit="true"' \
curl -X PUT https://url/rest/api/content/1234/child/attachment

But its showing like X-XSS-Protection: 1; mode=block, GMT;path=/;secure;httponly

How can I resolve this error? Can someone pls help

1 answer

1 accepted

2 votes
Answer accepted
Katerina Kovriga _Stiltsoft_
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.
February 24, 2022

Hi @Dastagiri ,

You can browse the Atlassian Marketplace and search for apps that recreate tables from CSV attachments (it seems to me that there may be free add-ons).

Our own Table Filter and Charts for Confluence app is a paid one because its main functions are filtration, aggregation, calculations in tables, etc. But it also provides the Table from CSV macro that will suit your case.

Dastagiri February 26, 2022

Thanks 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events