Forums

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

Need rest api to create page & display html content reading from html file

ekamsoft
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2023

Hi,

I am trying to use below command but not working

curl -u admin:admin -X POST -H 'Content-Type: application/json' -d '{"type":"page","title":"page1","ancestors":[{"id":1234567}],"space":{"key":"test"},"body":{"storage":{"value":/tmp/test.html,"representation":"storage"}}}' https://localhost/wiki/rest/api/content/ | python3 -mjson.tool

1 answer

0 votes
Matt
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.
August 7, 2023

What's not working about it? What response are you receiving from curl?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events