Create an environment
POST
A named set of environment variables to start sandboxes with, by name, with environment on POST /v1/sandboxes. Values are encrypted and never returned. At most 50 per project.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Body
application/json
namestringrequired1 to 64 letters, digits, dots, dashes or underscores, starting with a letter or digit. Unique in the project: a taken name answers
409 conflict.Limitsmax length 64envobjectThe variables. Same rules as
envonPOST /v1/sandboxes: keys match[A-Za-z_][A-Za-z0-9_]{0,127}, at most 100 and 64 KB, and a few platform names are refused.1 properties
{key}string
Responses
201Created.
environmentobjectrequiredA named set of environment variables to start sandboxes with. Values are encrypted at rest and never returned.
5 properties
idstringrequirednamestringrequiredvariablesobject[]requiredEach variable's name and the last four characters of its value.
2 properties
keystringrequiredlast4stringrequired
createdAtstring<date-time>requiredupdatedAtstring<date-time>required
400Invalid name or variables.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
403`plan_limit_reached`: the project keeps 50 environments already.
codestringrequiredmessagestringrequireddetailsobject
409`conflict`: an environment with that name exists.
codestringrequiredmessagestringrequireddetailsobject