Skip to main content
POST
/
v1
/
environments
/
{environmentId}
/
environment-variables
Add environment variables
curl --request POST \
  --url https://api.alpic.ai/v1/environments/{environmentId}/environment-variables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "environmentVariables": [
    {
      "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

environmentId
string
required

The ID of the environment

Body

application/json
environmentVariables
object[]
required

Response

The environment variables have been added successfully

success
any
required