---
title: "Update a Variable"
method: PATCH
path: "/vars/{var}"
tags: ["variables"]
---

# Update a Variable

`PATCH /vars/{var}`

## Path parameters

- `var` string, required

## Query parameters

- `force` boolean
- `include` string[]

## Response `200`

Successfully updates the variable.

## Other responses

- `404` — Variable not found, or user unauthorized to perform action.
- `422` — Malformed request body (missing attributes, wrong types, etc.)
- `4XX` — Client error.
- `5XX` — Server error.

---

[API](https://skmtc.net/scalr/apis/scalr-iacp-api.md) · [All operations](https://skmtc.net/scalr/apis/scalr-iacp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/scalr/scalr-iacp-api/revisions/fc927526ad12/schema)
