Create an Environment
1 min
POST
https://api.optimizely.com/v2/environments
acceptstringGenerated from available response content types
bodyobjectA string in JSON format that includes all the fields to create an Environment
201Return the created Environment
400Invalid request body supplied
401Invalid credentials
403You do not have permission to create an Environment in the specified Project
defaultUnexpected error
curl --request POST \
--url https://api.optimizely.com/v2/environments \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '{
"key": "",
"name": "Staging",
"project_id": ""
}'