Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,482
Community Members
 
Community Events
165
Community Groups

Passing wiki markup via API from a file without adding explicit line breaks

Hello,

I have been able to update a Confluence page via the API using the wiki storage type ("representation":"wiki") however everything goes in as a single line unless I explicitly add "\n" at the end of each line.  Is there a way to push this data without having to do that?

Thanks.

1 answer

Hi Dennis,

Are you using some other character as a newline terminator when constructing your content?

Wiki markup is line-sensitive so I'm not sure how you could get away without line terminators - but am curious what you are trying if you can share a snip of the wiki markup you are hoping to save.

The issue seemed to be with the ConfluencePS module I was using. I switched to a different one updated to use PAT (https://github.com/jamiekowalczik/ConfluencePS) and the problem was resolved. I had to add my PAT to the powershell module; I'll probably update the code to get that from an encrypted  file.

Like DJ likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

55 views 0 0
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you