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_secsinteger or nullOptional
When the environment was created or one of its values last changed. Unset when neither is known.
created_by_user_idstring or nullOptional
Unset for 'production' and when the creator is not known.

Errors

400
Bad Request Error
409
Conflict Error
422
Unprocessable Entity Error