---
title: "Rename variable"
method: PATCH
path: "/orgs/variables/{key}"
tags: ["Workspace"]
---

# Rename variable

`PATCH /orgs/variables/{key}`

## Request

- Base URL: `https://api.useinvent.com`
- URL: `https://api.useinvent.com/orgs/variables/{key}`
- Auth: HTTP bearer

Rename a variable for a specific org.

## Path parameters

- `key` string, required

## Request body

- UpdateOrgVariableSchema: Detailed information about a variable in your org
  - `key` string: The key of the org variable
  - `value` string: The value of the org variable
  - `secret` boolean: Indicates if the variable is a secret

## Response `200`

The updated org variables.

- OrgVariableSchema: Detailed information about a variable in your org
  - `key` string, required: The key of the org variable
  - `value` string: The value of the org variable
  - `secret` boolean: Indicates if the variable is a secret

---

[API](https://skmtc.dev/useinvent/apis/invent-api.md) · [All operations](https://skmtc.dev/useinvent/apis/invent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useinvent/apis/invent-api/revisions/98824f3fde82?raw)
