Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

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 Leaders.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events