Skip to main content

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Request Body

Full JSON Body Example - Global Environment Variable

Full JSON Body Example - Environment-Specific Variable

Full JSON Body Example - Environment-Specific with Secret Values

Request Body Fields

Environment Value Object (environmentValueList)

Notes

  • name in path must match name in body
  • name must be unique within the project
  • If global=true, provide globalValue and set environmentValueList=null
  • If global=false, provide environmentValueList with at least one environment value
  • visible=false marks the value as secret (will be masked in responses)
  • globalVisible=false marks the global value as secret
  • Variable is automatically deployed to all environments after creation

Response

Success Response (200 OK) - Deployment Successful

When the environment variable is created and successfully deployed to all environments:

Error Response (400 Bad Request)

or
or

Common Causes

  • Missing or empty name field
  • Name in path does not match name in body
  • Environment variable name already exists
  • Invalid global/environment-specific configuration

Deployment Failure Note

When status is “SUCCESS” but deploymentResult.success is false, the environment variable was created in the Manager but failed to deploy to one or more Gateway environments. Common causes:
  • Gateway not running or not reachable (e.g., “Connection refused” on port 8091)
  • Network connectivity issues between Manager and Gateway
  • Environment name mismatch or environment not configured

cURL Example

Example 1: Create Global Environment Variable

Example 2: Create Environment-Specific Variable

Permissions

User must have SECRETS + MANAGE permission in the project. For deployment operations (when deploying environment variables to environments), user must also have SECRETS + DEPLOY_UNDEPLOY permission.

Notes and Warnings

  • Name Uniqueness:
    • Environment variable name must be unique within the project
    • If name already exists, creation will fail
  • Name Matching:
    • Name in path must match name in body
    • Case-insensitive matching
  • Global vs Environment-Specific:
    • global=true - Single value for all environments
    • global=false - Different values per environment
  • Secret Values:
    • Set visible=false or globalVisible=false to mark values as secret
    • Secret values are masked (returned as null) in responses
  • Environment Names:
    • Environment names must exist
    • Use environmentName (not environmentId)
  • Automatic Deployment:
    • Variable is automatically deployed to all environments
    • Deployment results are returned in the response
  • For deployment operations (when deploying environment variables to environments), user must also have SECRETS + DEPLOY_UNDEPLOY permission
    • User must have access to the project