Add custom data widget
add_custom_data_widgetAdd a Custom Data widget to a page: a table showing demo data until it points at an uploaded CSV dataset. Returns the new widget_id — configure it with update_data_widget, passing advanced.custom_data_id from list_custom_data plus the dataset's own column names as the metrics and dimensions (get_custom_data lists them). Position, width and height match the editor's Custom Data card.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page_id | Yes | Page ID the widget will be placed on, from list_pages. | |
| client_id | Yes | Client ID the report belongs to (from list_clients). | |
| source_id | Yes | Report ID the widget belongs to (from list_reports). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | The custom data widget, still on demo data until a dataset is picked, that was added — widget_id, plus the stored row with the defaults the server filled in (position, width, height). | |
| success | Yes | True when the call succeeded. A failure comes back as an error result instead. |