---
title: "Create a Variable Value"
method: POST
path: "/streaming/v2/variables/{variable_id}/values"
tags: ["variable_values"]
---

# Create a Variable Value

`POST /streaming/v2/variables/{variable_id}/values`

Creates a new value for the specified variable. Duplicate values are not allowed.

## Path parameters

- `variable_id` string, uuid, required

## Request body

- NewVariableValue
  - `value` union, required — The value to assign to the variable. Can be a string, number, or boolean.
    - number
    - string
    - boolean

## Response `201`

Variable value created

- VariableValue
  - `id` string, uuid, required
  - `created_at` string, date-time
  - `updated_at` string, date-time
  - `value` union, required
    - number
    - string
    - boolean

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.dev/blockdaemon/apis/staking-api.md) · [All operations](https://skmtc.dev/blockdaemon/apis/staking-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/blockdaemon/staking-api/revisions/f94e296a08a3/schema)
