v2

Swagger 2.02026-08-01331211921.0 KB
Snippets

Get a previous revision of a snippet

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.

get/snippets/{workspace}/{encoded_id}/{node_id}

Response

The snippet object.

typestring required
idinteger
titlestring
scm'git'

The DVCS used to store the snippet.

created_onstring date-time
updated_onstring date-time
is_privateboolean