---
title: "appends a selection box for the user to choose one value"
method: POST
path: "/api/notebook/appendChoice"
---

# appends a selection box for the user to choose one value

`POST /api/notebook/appendChoice`

appends a slider component into the notebook. The value of the selected option can be used in code using the given variable name.

## Query parameters

- `notebookId` string, required

## Request body

- object
  - `variableName` string, required — the name of the variable for this slider. Should be unique and have no spaces or weird characters.
  - `options` string[], required — the options available for the user
  - `selectedName` string — contains the initially selected name from the given options.

## Response `200`

Ok

- unknown

## Changes

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

- **2023-11-27** `c2d57e621a13` — 6 breaking, 3 warning, 1 info
  - the request property `options` became required
  - the request property `variableName` became required
  - the `options` request property type/format changed from ``/`` to `array`/``
  - the `selectedName` request property type/format changed from ``/`` to `string`/``
  - …6 more
- **2023-11-20** `ee7eb73634d2` — 3 breaking, 2 warning, 5 info
  - the `options` request property type/format changed from `array`/`` to ``/``
  - the `selectedName` request property type/format changed from `string`/`` to ``/``
  - the `variableName` request property type/format changed from `string`/`` to ``/``
  - removed the optional property `notebookErrors` from the response with the `200` status
  - …6 more
- **2023-11-19** `35c27bb79744` — 3 warning, 2 info
  - removed the optional property `createdElementId` from the response with the `200` status
  - removed the optional property `createdElementName` from the response with the `200` status
  - removed the optional property `createdElementType` from the response with the `200` status
  - added the optional property `notebookErrors` to the response with the `200` status
  - …1 more
- **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/appendChoice/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)
