Forums

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

Bitbucket Create Snippet with API

Deleted user July 3, 2020 edited

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
atlassian, out of office, loom, confluence, async collaboration, meeting recaps, remote teamwork, team alignment, knowledge sharing, AI-powered notes, productivity tools, workforce continuity, teamwork collection

Put your meeting notes on autopilot with Loom + Confluence

AI-powered meeting notes keep work moving even if you’re out of the office. Enjoy your well-deserved time off and return refreshed, confident you’ll catch up in no time.

Learn more
AUG Leaders

Atlassian Community Events