# Creates a new autopilot for the project with the specified id.

POST https://api.awork.com/api/v1/projects/{projectId}/autopilot

Creates a new autopilot for the project with the specified id.
            Also creates and enables all alerts for the new autopilot.
            For this action, the user needs to be the owner of the project or must have 'read' permissions
            of the feature 'project-master-data' globally or in their project role.

<Check title="Required Permissions" icon="key">Any authenticated user.</Check>

## Request example

```sh
curl -X POST --globoff 'https://api.awork.com/api/v1/projects/{projectId}/autopilot' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  --data '{
  "type": "agile",
  "alerts": [
    {
      "alert": "due_soon",
      "enabled": true,
      "channel": "email"
    }
  ]
}'
```

- path parameter `projectId`: string (required). The id of the project.

## Request body (application/json)

- `type`: string (required)

- `alerts`: array of object or null

## Response 200

OK

application/json

```json
{
  "type": "agile",
  "enabled": true,
  "alerts": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "alert": "due_soon",
      "enabled": true,
      "channel": "email"
    }
  ],
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "createdOn": "2026-01-15T09:30:00Z",
  "createdBy": "123e4567-e89b-12d3-a456-426614174000",
  "updatedOn": "2026-01-15T09:30:00Z",
  "updatedBy": "123e4567-e89b-12d3-a456-426614174000"
}
```
