The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Bitbucket Wiki Not allowing PUT requests via REST API

Michael Miller
August 7, 2017

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Boris Berenberg - Atlas Authority
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 Champions.
August 7, 2017

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

Michael Miller
August 7, 2017

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

Boris Berenberg - Atlas Authority
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 Champions.
August 7, 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

Michael Miller
August 10, 2017

Same error doesn't help

TAGS
AUG Leaders

Atlassian Community Events