Skip to main content

Create project

POST 

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

Create a new Unleash project.

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/projects' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"name": "Pet shop",
"description": "This project contains features related to the new pet shop.",
"mode": "open",
"defaultStickiness": "userId",
"environments": [
"production",
"development"
],
"changeRequestEnvironments": [
{
"name": "production",
"requiredApprovals": 3
}
]
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "name": "Pet shop",
  "description": "This project contains features related to the new pet shop.",
  "mode": "open",
  "defaultStickiness": "userId",
  "environments": [
    "production",
    "development"
  ],
  "changeRequestEnvironments": [
    {
      "name": "production",
      "requiredApprovals": 3
    }
  ]
}
ResponseClear

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