---
title: "changes a slider component"
method: POST
path: "/api/notebook/updateSliderVariable"
---

# changes a slider component

`POST /api/notebook/updateSliderVariable`

changes an existing slider component.

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `elementId` string — the id of the slider element to change
  - `variableName` string — the new name of the variable for this slider. Should be unique and have no spaces or weird characters.
  - `value` number, required — the new value for this slider
  - `unit` string — the new unit of the value
  - `min` number — the new minimum value this slider accepts
  - `max` number — the new maximum value this slider accepts
  - `step` number — the new step at which the user can change the value

## Response `200`

Ok

## Changes

- **2023-11-27** `c2d57e621a13` — 7 breaking, 2 info
  - the request property `value` became required
  - the `max` request property type/format changed from ``/`` to `number`/``
  - the `min` request property type/format changed from ``/`` to `number`/``
  - the `step` request property type/format changed from ``/`` to `number`/``
  - …5 more
- **2023-11-23** `1e239422074b` — 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/updateSliderVariable/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)
