---
title: "Create a survey variable"
method: POST
path: "/v3/variables"
tags: ["variables", "v3"]
---

# Create a survey variable

`POST /v3/variables`

## Request body

- CreateVariablesSchema
  - `survey_id` number, required — Id of Survey
  - `label` string, required
  - `name` string, required
  - `description` string
  - `type` 'STRING' | 'NUMBER' | 'DATE', required

## Response `200`

Successful

---

[API](https://skmtc.net/surveysparrow/apis/api-documentation.md) · [All operations](https://skmtc.net/surveysparrow/apis/api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/surveysparrow/api-documentation/versions/f9da74f558da/schema)
