Check if the current user is watching a snippet
GET
/snippets/{workspace}/{encoded_id}/watch
Used to check if the current user is watching a specific snippet.
Returns 204 (No Content) if the user is watching the snippet and 404 if not.
Hitting this endpoint anonymously always returns a 404.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” encoded_id
required
string
The snippet id.
workspace
required
string
This can either be the workspace ID (slug) or the workspace UUID
surrounded by curly-braces, for example: {workspace UUID}.
Responses
Section titled “ Responses ”If the authenticated user is watching the snippet.
If the snippet does not exist, or if the authenticated user is not watching the snippet.
Media type application/json
Error
Base type for most resource objects. It defines the common type element that identifies an object’s type. It also identifies the element as Swagger’s discriminator.
object
type
required
string
error
object
message
required
string
detail
string
data
Optional structured data that is endpoint-specific.
object
key
additional properties
any
key
additional properties
any
Example generated
{ "type": "example", "error": { "message": "example", "detail": "example", "data": {} }}