GET /snippets/{workspace}/{encoded_id}/{node_id}
Identical to GET /snippets/encoded_id
, except that this endpoint
can be used to retrieve the contents of the snippet as it was at an
older revision, while /snippets/encoded_id
always returns the
snippet's current revision.
Note that only the snippet's file contents are versioned, not its meta data properties like the title.
Other than that, the two endpoints are identical in behavior.
Servers
- https://api.bitbucket.org/2.0
Path parameters
Name | Type | Required | Description |
---|---|---|---|
node_id |
String | Yes |
A commit revision (SHA1). |
encoded_id |
String | Yes |
The snippet id. |
workspace |
String | Yes |
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: |
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.