Forums

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

Unable to Create formatted Markdown with "representation":"wiki" in confluence using the Rest Api

Awarelogy
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!
July 23, 2023 edited

Hi Team,

I have created valid JSON and using Rest Api "rest/api/content" to create content as markdown in confluence.

If i hit Api i get HTTP 200 and Json got pasted on confluence page as plane html text though my repesrentation is  "representation":"wiki"

Conf.JPG

 

{"type":"page","title":"Release Notes-TestA2","ancestors":[{"id":121212}],"body":{"wiki":{"value":"Text"}},"space":{"key":"test"}}

If i see this in Markdown in interface and paste the same html  then i see proper table formating with the content.

conf1.JPG

1 answer

0 votes
Evgenii
Community Champion
July 23, 2023 edited

Hi, @Awarelogy 

Please, don't paste full request, it's difficult to read post, too many malformed text.

As for your question, please, look at example here:

https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/#create-a-new-page

You're using incorrect request, to create page.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events