---
title: "Update Variable"
method: PATCH
path: "/v1/variables/{variable_id}"
tags: ["V1 - Variables"]
---

# Update Variable

`PATCH /v1/variables/{variable_id}`

## Request

- Base URL: `https://api.app.noxus.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.app.noxus.ai/v1/variables/{variable_id}`
- Auth: API key in header `X-API-Key`

Update a variable or secret.

## Path parameters

- `variable_id` string, required

## Request body

- VariablePatchRequest: Partial-update payload — same shape, all fields optional.
  - `name` string, nullable
  - `value_type` 'string' | 'number' | 'boolean' | 'object' | 'datetime' | 'file', nullable
  - `source` 'inline' | 'vault' | 'environment', nullable
  - `inline_value` string, nullable
  - `vault_credential_id` string, nullable
  - `vault_path` string, nullable
  - `vault_key` string, nullable
  - `env_var_name` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/noxus/apis/noxus-backend.md) - [All operations](https://skmtc.dev/noxus/apis/noxus-backend/llms.txt) - [OpenAPI document](https://skmtc.dev/noxus/apis/noxus-backend/revisions/0e37810b7ad5?raw)
