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
Key | Datatype | Required | Description |
---|---|---|---|
api_key | string | ||
authtoken | string | Enter your authtoken. | |
authorization | string | For this call we recommend you to use management token. | |
Content-Type | string | Enter "application/json" to pass a request body. |