---
title: "Update Global Variable"
method: PATCH
path: "/globalvars/{globalVariableId}"
tags: ["Global Variables"]
---

# Update Global Variable

`PATCH /globalvars/{globalVariableId}`

Updates a single global variable. 'key' needs to be unique. Partial updates are supported.
### Authorization Required:
  - Designer Administrator

## Path parameters

- `globalVariableId` string, required

## Request body

- GlobalVariablePatch
  - `key` string — Name of the key of the global variable
  - `value` string — Value of the key of the global variable
  - `description` string — Description for the global variable
  - `serverSideOnly` boolean — Whether the global variable is available server side only

## Response `200`

Global Variable updated

- GlobalVariable
  - `id` string — Id of the global variable
  - `key` string — Name of the key of the global variable
  - `value` string — Value of the key of the global variable
  - `description` string — Description for the global variable
  - `serverSideOnly` boolean — Whether the global variable is available server side only
  - `created` string, date-time
  - `createdBy` string — Creator of the global variable
  - `modified` string, date-time
  - `modifiedBy` string — Last modifier of the global variable
  - `deleted` string, date-time

## Other responses

- `default` — Error

---

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