---
title: "changes some of the parameters for a plot"
method: POST
path: "/api/notebook/setPlotParams"
---

# changes some of the parameters for a plot

`POST /api/notebook/setPlotParams`

changes some of the parameters for a plot

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `polotId` string, required — the id of the plot element to change
  - `newPlotParams` object, required — the parameters to change on the plot. Only include those that need to change
    - `plotType` 'bar' | 'circle' | 'square' | 'tick' | 'line' | 'area' | 'point' | 'arc', required
    - `xColumnName` string
    - `sizeColumnName` string
    - `colorColumnName` string
    - `thetaColumnName` string

## Response `200`

Ok

## Changes

> 8 revisions in range; 1 could not be searched.

- **2023-11-27** `c2d57e621a13` — 4 breaking, 1 warning, 7 info
  - added the new required request property `newPlotParams/plotType`
  - added the new required request property `polotId`
  - the request property `newPlotParams` became required
  - the `newPlotParams` request property type/format changed from ``/`` to `object`/``
  - …8 more
- **2023-11-20** `ee7eb73634d2` — 2 breaking, 7 warning, 1 info
  - the `newPlotParams` request property type/format changed from `object`/`` to ``/``
  - the `plotId` request property type/format changed from `string`/`` to ``/``
  - removed the request property `newPlotParams/colorColumnName`
  - removed the request property `newPlotParams/plotType`
  - …6 more
- **2023-11-19** `35c27bb79744` — 1 info
  - added the media type `application/json` for the response with the status `200`
- **2023-11-08** `d0f9de8761ec` — 1 info
  - endpoint added
- **2023-10-27** `f8c8d4256dda` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/changes/api/notebook/setPlotParams/post.md)

---

[API](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook.md) · [All operations](https://skmtc.dev/decipad/apis/create-and-modify-a-decipad-notebook/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decipad/create-and-modify-a-decipad-notebook/revisions/5f77d79b504f/schema)
