> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nexusmission.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Task

> Create a new task associated with a project.

## Body

<ParamField body="title" type="string" required>
  Task title.
</ParamField>

<ParamField body="description" type="string">
  Task description.
</ParamField>

<ParamField body="projectId" type="string" required>
  ID of the project this task belongs to.
</ParamField>

<ParamField body="status" type="string">
  Task status (e.g., `TODO`, `IN_PROGRESS`, `DONE`).
</ParamField>

<ParamField body="priority" type="string">
  Task priority (e.g., `LOW`, `MEDIUM`, `HIGH`).
</ParamField>

<ParamField body="dueDate" type="string">
  ISO 8601 due date (e.g., `2026-04-01T00:00:00.000Z`).
</ParamField>

<ParamField body="assigneeId" type="string">
  User ID of the assignee.
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST http://localhost:3000/api/v1/tasks \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{
      "title": "Implement login",
      "projectId": "clxyz456",
      "status": "TODO",
      "priority": "HIGH"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "clxyz789",
    "title": "Implement login",
    "status": "TODO",
    "priority": "HIGH",
    "projectId": "clxyz456",
    "createdAt": "2026-03-18T01:00:00.000Z"
  }
  ```
</ResponseExample>
