GET /snippets/{workspace}
Returns a paginated list of snippets owned by {workspace}.
To limit the set of returned snippets, apply the
?role=[owner|contributor|member] query parameter where the roles are
defined as follows:
owner: snippets owned by{workspace}that also belong to the current user (only returns results when{workspace}is the current user's personal workspace)contributor: snippets owned by{workspace}that the current user is watching, plus any owned by{workspace}and the current usermember: all snippets owned by{workspace}if the current user is a member, otherwise only those the current user is watching
When no role is specified, all snippets owned by {workspace} are returned.
If the current user is not a member of {workspace}, only public snippets are
returned regardless of role.
The returned response is a normal paginated JSON list. This endpoint
only supports application/json responses and no
multipart/form-data or multipart/related. As a result, it is not
possible to include the file contents.
Servers
- https://api.bitbucket.org/2.0
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workspace |
String | Yes |
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
role |
String | No |
Filter down the result based on the authenticated user's role ( Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.