v1

latestOpenAPI 3.0.12026-07-1729343.4 KB

appends a slider component

appends a slider component into the notebook. The user will be able to change that value by playing with the slider. The value of the slider can be used in code using the given variable name.

post/api/notebook/appendSliderVariable

Query parameters

notebookIdstring required

the notebook id

Request body

variableNamestring required

the name of the variable for this slider. Should be unique and have no spaces or weird characters.

initialValuenumber required

the initial value for this slider

unitstring

the unit of the value. Can be something like "USD per month", "GBP", "bananas", "bananas per minute", etc.

minnumber

the minimum value this slider accepts

maxnumber

the maximum value this slider accepts

stepnumber

the step at which the user can change the value

Response

Ok

{"stackTrail":"components:responses:appendSliderVariableResponse:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}