Downloads
Upload a download artifact
Upload new download artifacts.
To upload files, perform a multipart/form-data POST containing one or more files fields:
$ echo Hello World > hello.txt
$ curl -s -u evzijst -X POST https://api.bitbucket.org/2.0/repositories/evzijst/git-tests/downloads -F files=@hello.txt
When a file is uploaded with the same name as an existing artifact, then the existing file will be replaced.
post/repositories/{workspace}/{repo_slug}/downloads
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/downloads
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: repository:write
- or HTTP basic
- or API key in header Authorization
Response
The artifact was uploaded sucessfully.
Changes
No recorded changes to this operation across all 15 revisions of this API.