---
title: "update variable"
method: POST
path: "/w/{workspace}/variables/update/{path}"
tags: ["variable"]
---

# update variable

`POST /w/{workspace}/variables/update/{path}`

## Path parameters

- `workspace` string, required
- `path` string, required

## Query parameters

- `already_encrypted` boolean

## Request body

- EditVariable
  - `path` string — The path to the variable
  - `value` string — The new value of the variable
  - `is_secret` boolean — Whether the variable is a secret
  - `description` string — The new description of the variable
  - `labels` string[]
  - `ws_specific` boolean

## Response `200`

variable updated

---

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