Skip to main content

Create or overwrite a variable (name in the body)

PUT 

/api/2/environment/:workspace_name

Create (or overwrite by name) a variable in a workspace.

Auto-creates the workspace if it does not already exist. This is the same upsert as update-environment-variable; the two differ only in whether the variable name arrives in the body or in the path.

Request​

Responses​

Successful Response