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 Create Snippet with API

Deleted user
July 3, 2020

I've tried several different ideas, and I'm out.  While I've looked at the documentation and curl I haven't been able to really figure out what's going on.  I have a file I'm looking to upload via api.

curl -s -L -v -X PUT --url http://api.bitbucket.org/2.0/snippets/{team}/{id}\  --header "authorization: Basic ${pass_hash}" -F title="test" -F is_private="true" -F "file=@bar.txt"

I can't seem to get the snippet file to update. I'm attempting to update now because continually creating failures seemed like a bad idea.  

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events