superset_chart_update
Update an existing Apache Superset chart by passing only the fields to change. Modify properties like name, visualization type, params, query context, or dashboard bindings.
Instructions
Update an existing chart. Pass only the fields to change.
Args: chart_id: ID of the chart to update. slice_name: New name. viz_type: New visualization type (see chart_create for the list of types). params: New JSON visualization parameters (replaces entirely). See chart_create for reference on numeric/time formats. IMPORTANT: params replaces ALL parameters — first get current ones via chart_get, modify the needed fields, and pass the full JSON. CRITICAL: for dates use D3 strftime format ("%Y-%m-%d"), NOT moment.js ("YYYY-MM-DD") — otherwise a literal will be shown! query_context: New JSON query context (replaces entirely). IMPORTANT: when changing params you should also update query_context, otherwise the chart will use the old query context. dashboards: New list of dashboard IDs (REPLACES all bindings). confirm_params_replace: Confirmation for replacing params (REQUIRED when passing params).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | No | ||
| chart_id | Yes | ||
| viz_type | No | ||
| dashboards | No | ||
| slice_name | No | ||
| query_context | No | ||
| confirm_params_replace | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |