Update an environment
post
/v1/secrets/environments/environmentOnly the submitted fields are changed. Requires admin access to the environment.
Request
Authorization
- Authorizationstringheaderrequired
Key in the format
Bearer <API-key>. Create a key on the API keys page.
Query Parameters
- project stringrequired
Project alias
- environment stringrequired
Environment alias
Request body
namestring
Name
Example:
Productionpersonal_configsboolean
Personal configurations
slugstring
Alias
Example:
productionResponse
access_levelstring
Current user's access level to the environment
Possible values: [none, viewer, editor, admin]
Example:
editorcreated_atstring<date-time>
Creation date
idinteger<int64>
Identifier
Example:
10initial_fetch_atstring<date-time>
Date secrets were first read via the API
namestring
Name
Example:
Productionorderinteger<int64>
Display order
Example:
1personal_configsboolean
Personal configurations <environment>/personal are allowed
slugstring
Alias
Example:
productionupdated_atstring<date-time>
Update date