Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.plain.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Using TypeScript? Check out our GraphQL SDK for a fully typed client.
Updates use field-level wrapper inputs — to change a field pass { "value": ... }; to leave a field untouched omit it entirely. To clear the path (un-group a snippet) pass { "value": null }. This operation requires the following permissions:
  • snippet:edit
Mutation
mutation updateSnippet($input: UpdateSnippetInput!) {
  updateSnippet(input: $input) {
    snippet {
      id
      name
      text
      markdown
      path
    }
    error {
      message
      type
      code
      fields {
        field
        message
        type
      }
    }
  }
}
Variables
{
  "input": {
    "snippetId": "sn_01HXXXXXXXXXXXXXXXXXXXXXXX",
    "name": { "value": "Out of office (updated)" },
    "text": { "value": "Thanks for getting in touch! We'll reply within one business day." }
  }
}