excalibur_save_snippet
Save a reusable post snippet (opening/footer/CTA). Omit snippet_id to
create a new one; pass it to update an existing snippet in place (name/text/
favorite/doc). On update only the fields you pass change — omit favorite
(leave it null) to keep it as-is, so a doc-only patch (e.g. toggling a snippet
dynamic) doesn't reset it. doc is the same block/flag document a post
carries, so the editor is identical for both. Free and owner-scoped. Returns
{"success": true, "snippet": …}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | ||
| name | No | ||
| npub | No | Required. Your Nostr public key (npub1...). | |
| text | No | ||
| favorite | No | ||
| dpop_token | No | ||
| snippet_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||