Skip to main content
objectSnippet

Fields

id
ID!
name
String!
text
String!

The plain-text body of the snippet, used in channels that do not render markdown.

markdown
String

Optional markdown body. When present, this is preferred over text in rich-text channels.

path
String

Folder path used to group snippets in the Plain app. Only alphanumeric characters are allowed. Null means the snippet is ungrouped.

isDeleted
Boolean!

Whether the snippet has been soft-deleted. Soft-deleted snippets are hidden from the snippet picker but remain queryable by ID.

createdAt
createdBy
updatedAt
updatedBy
deletedAt

The timestamp at which the snippet was soft-deleted, or null if it has not been deleted.

deletedBy

The user or machine user that deleted the snippet, or null if it has not been deleted.