Update environment

PUT https://{{base_url}}/v3/environments/{{environment_name}}

The Update environment call will update the details of an existing 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 Update 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.