Add an environment

POST https://{{base_url}}/v3/environments

The Add an environment call will add a publishing environment for a stack.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Add an environment API Reference document

Request Body

{"environment"=>{"name"=>"development", "urls"=>[{"locale"=>"en-us", "url"=>"http://example.com/"}]}}

HEADERS

KeyDatatypeRequiredDescription
api_keystring
authtokenstringEnter your authtoken.
authorizationstringFor this call we recommend you to use management token.
Content-TypestringEnter "application/json" to pass a request body.