---
title: "Controller Handle Edit Chart2"
method: POST
path: "/edit_chart/saved/{chart_id}"
tags: ["chart"]
---

# Controller Handle Edit Chart2

`POST /edit_chart/saved/{chart_id}`

Edit a chart that has been copied outside of a chat history

## Path parameters

- `chart_id` string, required

## Request body

- ChartEditingPayloadStandalone — Payload for editing a chart that has been copied outside of a chat history.
  - `updates` ChartEditingUpdates, required
    - `title` string, nullable — The title of the chart.
    - `description` string, nullable — The subtitle of the chart.
    - `llm_instructions` string, nullable — Instructions for the LLM to follow when editing the chart.
    - `datasetId` string, nullable — The dataset ID of the chart.
    - `datasourceId` string, nullable — The datasource ID of the chart.
    - `source_type` 'dataset' | 'datasource', nullable — Type of source to use (dataset or datasource).

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/akkio/apis/fastapi.md) · [All operations](https://skmtc.net/akkio/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/akkio/fastapi/versions/6662a407c637/schema)
