Mutations
createSnippet
Creates a new snippet in the workspace. The name is used to search for the snippet when composing a reply. Provide markdown in addition to text to supply a rich-text version used in channels that support markdown. The optional path (alphanumeric only) places the snippet in a folder in the Plain app. Requires the snippet:create permission.
MUTATION
createSnippet(input: CreateSnippetInput!): CreateSnippetOutput!Arguments
input
required
Returns
snippet
error
Mutation
Variables
Response
Mutation
Variables
Response

