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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events