Get a previous revision of a snippet
Changed onIdentical 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.
Request
- Base URLhttps://api.bitbucket.org/2.0
- URLhttps://api.bitbucket.org/2.0/snippets/{workspace}/{encoded_id}/{node_id}
- Auth
- OAuth 2Authorization code: https://bitbucket.org/site/oauth2/authorizeToken URL: https://bitbucket.org/site/oauth2/access_token scopes: snippet
- or HTTP basic
- or API key in header Authorization
Response
The snippet object.
Changes
- warning
removed the optional property
///from the response with the status (media type: application/json) - warning
removed the optional property
///from the response with the status (media type: multipart/related) - warning
removed the optional property
///from the response with the status (media type: multipart/form-data) - warning
removed the optional property
///from the response with the status (media type: application/json) - warning
removed the optional property
///from the response with the status (media type: multipart/related) - warning
removed the optional property
///from the response with the status (media type: multipart/form-data)
- warning