# Projects

> Projects that group your artifacts.

Source: https://docs.sommatic.ai/en/api/reference/projects/

## Create a new project.

`POST /project/management`

Returns the created Project with data provided.

Authentication: Bearer token

### Request body

Project object to be created.


### Responses

- `200`: OK.
- `500`: Something was wrong while you make this action.

### Example request

```bash
curl -X POST "https://api.sommatic.ai/project/management" \
  -H "Authorization: Bearer $SOMMATIC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Update an existing project.

`PATCH /project/management`

Updates the data of an existing Project with the data provided.

Authentication: Bearer token

### Request body

Project object to be created.


### Responses

- `200`: OK.
- `500`: Something was wrong while you make this action.

### Example request

```bash
curl -X PATCH "https://api.sommatic.ai/project/management" \
  -H "Authorization: Bearer $SOMMATIC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Delete a Project by its id.

`DELETE /project/management`

Deletes a Project based on the provided ID.

Authentication: Bearer token

### Request body

ID of the Project to delete

- `id` (string)

### Responses

- `200`: OK.
- `500`: Something went wrong while performing this action.

### Example request

```bash
curl -X DELETE "https://api.sommatic.ai/project/management" \
  -H "Authorization: Bearer $SOMMATIC_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
       "id": "<id>"
     }'
```

## Get an Project by query selector.

`GET /project/management/{queryselector}`

Returns the Project information that matches the query selector an search specified in the route.

Authentication: Bearer token

### Parameters

- `queryselector` (path, enum, required): Is the filter available for this query Allowed values: `id`, `organization-id`, `all`.
- `search` (query, string): Keyword to search for entities.
- `include_status` (query, string): Optional status parameter to include projects of a specific status.
- `exclude_status` (query, string): Optional status parameter to exclude projects of a specific status.
- `page` (query, integer): Page number, starting at 1 (default 1).
- `pageSize` (query, integer): Records per page (default 25).

### Responses

- `200`: OK.
- `500`: Something was wrong while you make this action.

### Example request

```bash
curl -X GET "https://api.sommatic.ai/project/management/<queryselector>" \
  -H "Authorization: Bearer $SOMMATIC_TOKEN"
```
