Bitbucket Wiki Not allowing PUT requests via REST API Edited

I like the WIKI and think it's a great feature but it doesn't allow "PUT" requests to update pages. They always come back with "Please choose a new title, myMarkdownFile.md aleady exists."

Ideally I'm just trying to autogenerate markdown documentation and push it to the WIKI during the build in Pipelines. So whenever code is documented the Wiki gets updated continuously.

Here is my code snippet:

x=$(cat tst/MyWeb.Test/bin/Debug/netcoreapp1.1/myController.md) | curl -X PUT --user ${USERNAME}:${PASSWORD} https://api.bitbucket.org/1.0/repositories/myUserName/myProject/wiki/myController --data-binary "path=/Project.wiki&data=$x"

1 answer

This widget could not be displayed.
Boris Berenberg Community Champion Aug 07, 2017

Do you mean Bitbucket wiki? Confluence wiki API would be a different URL.

yes bitbucket wiki sorry I'm not sure how it posted to confluence

Boris Berenberg Community Champion Aug 07, 2017

Trying following the exact format documented at https://confluence.atlassian.com/bitbucket/wiki-resources-296095206.html without piping the data in and see if the issue reproduces

Same error doesn't help

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,589 views 9 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you