# Drawing methods

:::info

These endpoints are only required when the [`saveload_separate_drawings_storage`] featureset is enabled.
This allows [saving drawings separately] from the chart layout.

:::

## Save drawings

POST request: `charts_storage_url/charts_storage_api_version/drawings?client=client_id&user=user_id&chart=chart_id&layout=layout_id`

### Request body

The request body contains a JSON with the `state` property, which holds a [`LineToolsAndGroupsState`] object.

### Response content

The response is a JSON object containing the `status` property, which may have values of either `ok` or `error`.

---

## Load drawings

GET request: `charts_storage_url/charts_storage_api_version/drawings?client=client_id&user=user_id&chart=chart_id&layout=layout_id&symbol=symbol`

### Response content

The response is a JSON object containing the following properties:

| Parameter | Description |
|-|-|
| `status` | `ok` or `error` |
| `data` | An object containing the `state` property, which holds a [`LineToolsAndGroupsState`] object |

[`LineToolsAndGroupsState`]: https://charting-library-docs.xstaging.tv/latest/api/interfaces/Charting_Library.LineToolsAndGroupsState
[`saveload_separate_drawings_storage`]: https://charting-library-docs.xstaging.tv/latest/customization/Featuresets.md#saveload_separate_drawings_storage
[saving drawings separately]: https://charting-library-docs.xstaging.tv/latest/saving_loading/saving_drawings_separately.md

---

## Sitemap

- [All documentation pages](https://charting-library-docs.xstaging.tv/llms.txt)
- [Full page map with headings](https://charting-library-docs.xstaging.tv/docs_map.md)
