Snippets
Create a snippet for a workspace
Identical to /snippets, except that the new snippet will be created under the workspace specified in the path parameter {workspace}.
post/snippets/{workspace}
Request
- Base URLhttps://api.bitbucket.org/2.0
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: snippet:write
- or HTTP basic
- or API key in header Authorization
Request body
Response
The newly created snippet object.
Changes
No recorded changes to this operation across all 23 revisions of this API.