Add a screenshot to a guide

attach_screenshot_to_guideChanges the chart

The app adds a chart picture it took to the guide of a script you own.

Details#

Add a screenshot from screenshot_chart to the guide of a script the member owns, and get the image id for an image block. It uses the same picture store as the guide editor's upload. The picture is not in the guide until you call save_guide or publish_guide with an image block whose image is the returned id (and alt text, required to publish). A missing script or one that is not theirs is guide_not_found; an unknown, expired or someone else's screenshot is screenshot_not_found (pictures are kept 24 hours). A guide keeps at most 40 pictures (guide_image_limit); too many this hour is guide_image_rate. The answer has script, image, width and height. Example: script <id>, screenshot <id from screenshot_chart>, then an image block { type: "image", image: <image>, alt: "RSI divergence on BTC/USDT 1D" }.

Inputs#

NameTypeRequiredDescription
scriptstringRequiredScript id of a script the member owns, from list_scripts.
screenshotstringRequiredThe screenshot id from screenshot_chart.