Endpoint
Authentication
Requires a Personal API Access Token.Header
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer | Yes |
| Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name (can be “admin” for admin project) |
| name | string | Yes | Current environment variable name |
Request Body
Same structure as Create Environment Variable. See Create Environment Variable for field descriptions.Important Notes
namein path is the current name (used to find the variable)namein body can be different (to rename the variable)- If renaming, new name must be unique
- All fields can be updated
Response
Same as Create Environment Variable. See Create Environment Variable for response format.cURL Example
Permissions
- User must have
SECRETS+MANAGEpermission in the project
Notes and Warnings
-
Name Change:
- Variable can be renamed by providing different name in body
- New name must be unique
-
Variable Must Exist:
- Variable with specified name must exist
-
Automatic Deployment:
- Variable is automatically deployed after update
Related Documentation
- Create Environment Variable - Create a new environment variable
- Delete Environment Variable - Delete an environment variable

