---
title: "Update Crm Activity"
method: PATCH
path: "/api/activities/{activity_id}"
tags: ["activities"]
---

# Update Crm Activity

`PATCH /api/activities/{activity_id}`

## 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/activities/{activity_id}`
- Auth: none declared

## Path parameters

- `activity_id` integer, required

## Request body

- CRMActivityUpdateSchema
  - `activity_type_id` integer, nullable
  - `subject` string, nullable
  - `details` string, nullable
  - `owner_id` integer, nullable
  - `due_at` string, date-time, nullable
  - `duration_minutes` integer, nullable
  - `all_day` boolean, nullable
  - `priority` 'low' | 'normal' | 'high', nullable
  - `status` 'open' | 'completed' | 'cancelled', nullable

## Response `200`

OK

- CRMActivityListItemSchema
  - `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
  - `deal_id` integer, nullable
  - `lead_id` integer, nullable
  - `customer_name` string
  - `deal_address` string
  - `deal_stage` string, nullable
  - `project_id` integer, nullable
  - `project_record_label` string, nullable

## Changes

> 22 revisions in range; 1 not diffed.

- **2026-10-25** `a181801f95f1`: 2 info
  - added the optional property `project_id` to the response with the `200` status
  - added the optional property `project_record_label` to the response with the `200` status

[Operation history](https://skmtc.dev/electricair/apis/electric-air-autoquote-api/changes/api/activities/:activity_id/patch.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)
