---
title: "Update a variable set"
method: PUT
path: "/runners/variables/variable-sets/{variableSetId}"
tags: ["Variable Sets"]
---

# Update a variable set

`PUT /runners/variables/variable-sets/{variableSetId}`

## Path parameters

- `variableSetId` string, required

## Request body

- UpdateVariableSetRequest
  - `name` string — Name of the variable set
  - `description` string — Description of the variable set
  - `labels` string[] — Labels to assign to the variable set
  - `parents` string[] — Parent variable set IDs
  - `variables` Variable[] — Variables in the variable set
    - `key` string
    - `value` string
    - `sensitivity` 'string' | 'secret'
    - `destination` 'env' | 'iac'

## Response `204`

Variable set updated successfully

## Other responses

- `400` — Bad Request Error
- `401` — Unauthorized Error
- `403` — Insufficient permissions
- `500` — Internal Server Error

---

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