---
title: "Update org shared environment variable"
method: PATCH
path: "/v1/org/env-vars/{key}"
tags: ["Organization"]
---

# Update org shared environment variable

`PATCH /v1/org/env-vars/{key}`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/org/env-vars/{key}`
- Auth: HTTP bearer

## Path parameters

- `key` string, required

## Request body

- UpdateOrgEnvVarRequest
  - `value` string
  - `environments` string[]
  - `comment` string

## Response `200`

Org shared env var updated

- OrgEnvVar
  - `id` string, uuid
  - `key` string
  - `environments` string[]
  - `sensitive` boolean
  - `comment` string, nullable
  - `value` string, nullable
  - `version` integer
  - `linked_vaults` string[]
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `404`: Resource not found

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
