Publish widget as API
fastero_publish_widget_apiPublish a widget's rows as a private web address another app or agent calls, read-only, without the database password: for a script or service that needs the numbers outside Fastero. For people to look at, fastero_share_dashboard publishes a dashboard's link instead. Only a query, spreadsheet or notebook-cell widget can be published (fastero_list_reports lists the widgets), and one already published is refused, with its address. A request to it carries the header X-Endpoint-Key: , and it answers { rows, lastUpdated, truncated }: rows at most five minutes old for a query widget; a spreadsheet widget's are its stored rows, and a notebook-cell widget's those of its notebook's last run, lastUpdated saying when. Anyone holding the key can read the rows until it is turned off (fastero_unpublish_widget_api). The organisation's owners are emailed about every publish. Returns widgetId, name, url, key, publishedAt and howToCall, a curl command; the key is in this answer only, since Fastero keeps just its hash. Owners, admins and editors of the project can publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| widgetId | Yes | A query, spreadsheet or notebook-cell widget of the project (fastero_list_reports lists them, as reports). | |
| projectId | Yes | The project’s id, from fastero_list_projects. |