Skip to main content

Creates a new environment

POST 

<your-unleash-url>/api/admin/environments

Uses the details provided in the payload to create a new environment

Request

Responses

The resource was successfully created.
Response Headers
  • location string
    The location of the newly created resource.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/environments' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"name": "string",
"type": "string",
"enabled": true,
"sortOrder": 0
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "name": "string",
  "type": "string",
  "enabled": true,
  "sortOrder": 0
}
ResponseClear

Click the Send API Request button above and see the response here!