---
title: "Update Variable By Name"
method: PATCH
path: "/api/variables/name/{name}"
tags: ["Variables"]
---

# Update Variable By Name

`PATCH /api/variables/name/{name}`

## Path parameters

- `name` string, required

## Headers

- `x-prefect-api-version` string

## Request body

- VariableUpdate — Data used by the Prefect REST API to update a Variable.
  - `name` string — The name of the variable
  - `value` string — The value of the variable
  - `tags` string[] — A list of variable tags

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/prefecthq/apis/untitled-api-2.md) · [All operations](https://skmtc.net/prefecthq/apis/untitled-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/prefecthq/untitled-api-2/revisions/29ba6c4f8837/schema)
