Skip to main content
PATCH
/
v1
/
environment-variables
/
{environmentVariableId}
Update an environment variable
curl --request PATCH \
  --url https://api.alpic.ai/v1/environment-variables/{environmentVariableId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "key": "<string>",
  "value": "<string>",
  "isSecret": false
}
'
{
  "success": "<unknown>"
}

Authorizations

Authorization
string
header
required

Bearer token for authentication. Use an API key from the API Keys page in team settings, or an OAuth access token.

Path Parameters

environmentVariableId
string
required

The ID of the environment variable

Body

application/json
key
string
required
Minimum string length: 2
Pattern: ^[a-zA-Z]([a-zA-Z0-9_])+$
value
string
Minimum string length: 1
isSecret
boolean
default:false

Response

The environment variable has been updated successfully

success
any
required