---
title: "Create Project Task"
method: POST
path: "/api/projects/{project_id}/activities"
tags: ["projects"]
---

# Create Project Task

`POST /api/projects/{project_id}/activities`

## Request

- Base URL: `https://api.electricair.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.electricair.io/api/projects/{project_id}/activities`
- Auth: none declared

Create a deal activity tied to this project, optionally about one permit, incentive, or loan.

## Path parameters

- `project_id` integer, required

## Request body

- ProjectTaskCreateSchema
  - `activity_type_id` integer, required
  - `subject` string, required
  - `details` string
  - `owner_id` integer, nullable
  - `due_at` string, date-time, nullable
  - `duration_minutes` integer, nullable
  - `all_day` boolean
  - `priority` 'low' | 'normal' | 'high'
  - `permit_id` integer, nullable
  - `incentive_application_id` integer, nullable
  - `loan_id` integer, nullable

## Response `200`

OK

- ProjectTaskSchema
  - `id` integer, required
  - `activity_type_id` integer, required
  - `activity_type_key` string, required
  - `activity_type_name` string, required
  - `activity_type_icon` string, required
  - `activity_type_color` string, required
  - `subject` string, required
  - `details` string, required
  - `owner_id` integer, nullable
  - `owner_name` string, nullable
  - `created_by_id` integer, nullable
  - `created_by_name` string, nullable
  - `due_at` string, nullable
  - `duration_minutes` integer, nullable
  - `all_day` boolean, required
  - `priority` string, required
  - `status` string, required
  - `completed_at` string, nullable
  - `calendar_sync_status` string, nullable
  - `calendar_sync_error` string, nullable
  - `created_at` string, required
  - `updated_at` string, required
  - `project_id` integer, nullable
  - `record_kind` 'permit' | 'incentive' | 'loan', nullable
  - `record_id` integer, nullable
  - `record_label` string, nullable

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-25** `a181801f95f1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/projects/:project_id/activities/post.md)

---

[API](https://skmtc.dev/electricair/apis/electric-air-autoquote-api.md) - [All operations](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/llms.txt) - [OpenAPI document](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/revisions/a13d832a5676?raw)
