Skip to navigation

Create environment

Create a workspace environment. Variables without a value for it fall back to their production value.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
namestringRequired
Unique name of the environment, e.g. 'staging'.

Response

Successful Response
namestring
Name of the environment, e.g. 'staging'.
updated_at_unix_secsintegerOptional
When the environment was created or one of its values last changed. Unset when neither is known.
created_by_user_idstringOptional
Unset for 'production' and when the creator is not known.

Errors

400
Environments Create Request Bad Request Error
409
Environments Create Request Conflict Error
422
Environments Create Request Unprocessable Entity Error