Update a snippet's identifier, name, or content. All fields are optional; only provided fields will be updated.
Update a snippet's identifier, name, or content. All fields are optional; only provided fields will be updated.
These sample requests are autogenerated by the OpenAPI spec. This endpoint requires one or more parameters in the URL: those are offset in curly-braces.
The IDs and values referenced in these responses are fake; please only rely on these responses for overall structure.
All parameters are optional unless explicitly specified.
A unique, newsletter-scoped slug used to reference the snippet inside email content (e.g. {{ snippets.footer }}). Must be unique per newsletter.
"footer"A human-readable name for the snippet, shown in the Buttondown UI.
"Footer"The body of the snippet, substituted wherever the snippet is referenced. Interpreted according to mode.
"Thanks for reading!"The editor mode for the snippet, which controls how content is rendered: fancy (Markdown), plaintext, or naked (raw HTML with no processing).