2021-03-12 19:08:18 +01:00
---
id: projects
title: /api/admin/projects
---
2021-07-29 15:04:00 +02:00
> The context feature is only available as part of Unleash Enterprise. In order to access the API programmatically you need to make sure you [obtain an API token](/user_guide/api-token) with admin permissions.
2021-03-12 19:08:18 +01:00
2021-06-04 11:17:15 +02:00
### List projects in Unleash {#list-projects-in-unleash}
2021-03-12 19:08:18 +01:00
`GET https://unleash.host.com/api/admin/projects`
Returns a list of projects in Unleash.
**Example response:**
```json
{
"version": 1,
"projects": [
{
"id": "default",
"name": "Default",
"description": "Default project",
"createdAt": "2020-12-03T09:47:20.170Z"
},
{
"id": "MyNewProject",
"name": "MyNewProject",
"description": "A test project",
"createdAt": "2020-12-03T09:47:20.170Z"
},
{
"id": "test",
"name": "Test Project",
"description": "Collection of test toggles",
"createdAt": "2020-12-03T09:47:20.170Z"
}
]
}
```
2021-06-04 11:17:15 +02:00
### Create a new project {#create-a-new-project}
2021-03-12 19:08:18 +01:00
`POST https://unleash.host.com/api/admin/projects`
Creates a new project.
**Body**
```json
{
"id": "someId",
"name": "Test Project",
"description": "Some description"
}
```
2021-06-04 11:17:15 +02:00
### Update a projects field {#update-a-projects-field}
2021-03-12 19:08:18 +01:00
`PUT https://unleash.host.com/api/projects/:id`
Updates a project with id=`id`.
**Body**
```json
{
"id": "someId",
"name": "Test Project",
"description": "Some description"
}
```
2021-06-04 11:17:15 +02:00
### Delete a projects field {#delete-a-projects-field}
2021-03-12 19:08:18 +01:00
`DELETE https://unleash.host.com/api/admin/projects/:id`
Deletes the project with id=`id`.