Publish a guide
The app publishes a guide for a script you own, so it shows in Indicators.
Details#
Publish the guide for a script the member owns: the content becomes the draft and the published version in one write, and has_guide becomes true. This is how a guide is created for Indicators and how an existing one is updated for readers. Only the owner can publish. A private script is refused with guide_private_script; set_script_visibility to Invite-only or Public first. Invalid or unfinished content is refused with guide_invalid and detail.problems. A missing script or one that is not theirs is guide_not_found. Too many saves this hour is guide_rate. Pictures cannot be uploaded; an image block may only use the id of a picture already uploaded in the site's guide editor. A YouTube video id is allowed. Example: script <id>, content { summary: "Short summary", blocks: [{ type: "heading", text: "How it works" }, { type: "paragraph", text: "The indicator plots…" }] }.
Inputs#
| Name | Type | Required | Description |
|---|---|---|---|
| script | string | Required | Script id of a script the member owns, from list_scripts. |
| content | object | Required | The guide to publish: summary (required, up to 140 characters) and blocks (required, up to 40). An empty guide or an unfinished block is refused. Pictures must already have been uploaded in the site's guide editor. |