Set Var Env

Updates one or more environment variables contained in the environment identified with the ID {envId}.

POST /resource/set/varenv/{envId}

Parameters

Parameters in bold are mandatory.

Location

Name

Description

Type

path

envId

The ID of the environment which contains the variable to be updated.

See Get Resource ID for further details on how to retrieve IDs.

str

body

varname

The name of the variable.

str, or list for multiple variables.

body  

vartype

The type of the variable. It can be:

  • 'code'

  • 'vault'                

str, or list for multiple variables.      

body  

value

The new name of the variable.

str, or list for multiple variables.

body        

issensitive

A flag to indicate if the variable contains sensitive data (1) or not (0).

int

To see details on possible response codes, go to API Responses.