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

# Update CRM task

> Update task details, reassign team members, or transition task status

Update attributes of an existing CRM task. You can modify task titles, due dates, instructions, reassign the task to a different team member, or change its lifecycle status (`pending`, `completed`, `cancelled`).

<Tip>
  When transitioning a task status to `completed`, the system automatically logs a `task_completed` event to the linked contact's [activity timeline](/api-reference/contacts/get-activities) and stamps `completed_at`.
</Tip>

***

### Authentication

This endpoint requires Bearer token authentication.

```http theme={null}
Authorization: Bearer <token>
```

| Header | Type | Required | Description | Format |
| :- | :- | :- | :- | :- |
| `Authorization` | `string` | **Yes** | Scoped organization API key or Bearer JWT token | `Bearer <token>` |

***

### Input parameters

<ParamField path="task_id" type="string" required>
  Unique UUID identifier of the task. Example: `e4b9d107-1b4e-4f32-8df6-96cbef3e6801`.
</ParamField>

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication. Format: `Bearer <token>`.
</ParamField>

<ParamField body="status" type="string">
  New operational status for the task: `pending`, `completed`, or `cancelled`.
</ParamField>

<ParamField body="title" type="string">
  Updated title or subject of the task (maximum 255 characters).
</ParamField>

<ParamField body="description" type="string">
  Updated task description or notes.
</ParamField>

<ParamField body="due_at" type="string">
  Updated due datetime in ISO 8601 format (e.g. `2026-10-20T17:00:00Z`).
</ParamField>

<ParamField body="assignee_id" type="string">
  UUID of the team member to reassign this task to.
</ParamField>

***

### Response Fields

Returns the updated [TaskResponse](/api-reference/crm/get-task#response-fields) object:

<ResponseField name="id" type="string">Task UUID.</ResponseField>
<ResponseField name="organization_id" type="string">Organization UUID.</ResponseField>
<ResponseField name="contact_id" type="string">Associated contact UUID.</ResponseField>
<ResponseField name="title" type="string">Task title.</ResponseField>
<ResponseField name="description" type="string">Task description or notes.</ResponseField>
<ResponseField name="due_at" type="string">Due timestamp in ISO 8601 format, or `null`.</ResponseField>
<ResponseField name="assignee_id" type="string">Assigned user UUID or `null`.</ResponseField>
<ResponseField name="status" type="string">Current status (`pending`, `completed`, `cancelled`).</ResponseField>
<ResponseField name="created_by_type" type="string">Creator type (`user`, `ai`, or `system`).</ResponseField>
<ResponseField name="created_by_id" type="string">Creator UUID or `null`.</ResponseField>
<ResponseField name="completed_at" type="string">ISO 8601 completion timestamp if completed, or `null`.</ResponseField>
<ResponseField name="created_at" type="string">Creation timestamp.</ResponseField>
<ResponseField name="updated_at" type="string">Modification timestamp.</ResponseField>
<ResponseField name="contact" type="object">Contact summary (`id`, `name`, `phone_number`).</ResponseField>

***

<RequestExample>
  ```bash cURL theme={null}
  curl -X PATCH "https://api.sayvy.ai/api/v1/crm/tasks/e4b9d107-1b4e-4f32-8df6-96cbef3e6801" \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/json" \
    -d '{
      "status": "completed",
      "description": "Proposal sent and reviewed by client CFO."
    }'
  ```

  ```python Python theme={null}
  import requests

  url = "https://api.sayvy.ai/api/v1/crm/tasks/e4b9d107-1b4e-4f32-8df6-96cbef3e6801"

  payload = {
      "status": "completed",
      "description": "Proposal sent and reviewed by client CFO."
  }

  headers = {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
  }

  response = requests.patch(url, json=payload, headers=headers)
  print(response.status_code)
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.sayvy.ai/api/v1/crm/tasks/e4b9d107-1b4e-4f32-8df6-96cbef3e6801", {
    method: "PATCH",
    headers: {
      "Authorization": "Bearer <token>",
      "Content-Type": "application/json"
    },
    body: JSON.stringify({
      status: "completed",
      description: "Proposal sent and reviewed by client CFO."
    })
  });

  const data = await response.json();
  console.log(data);
  ```

  ```java Java theme={null}
  import java.net.URI;
  import java.net.http.HttpClient;
  import java.net.http.HttpRequest;
  import java.net.http.HttpResponse;

  String jsonPayload = """
  {
    "status": "completed"
  }
  """;

  HttpRequest request = HttpRequest.newBuilder()
      .uri(URI.create("https://api.sayvy.ai/api/v1/crm/tasks/e4b9d107-1b4e-4f32-8df6-96cbef3e6801"))
      .header("Authorization", "Bearer <token>")
      .header("Content-Type", "application/json")
      .method("PATCH", HttpRequest.BodyPublishers.ofString(jsonPayload))
      .build();

  HttpResponse<String> response =
      HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
  System.out.println(response.body());
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "id": "e4b9d107-1b4e-4f32-8df6-96cbef3e6801",
    "organization_id": "00000000-0000-0000-0000-000000000001",
    "contact_id": "7b8f9e2a-4c1d-48ef-9123-bcde456789ab",
    "title": "Send updated contract agreement",
    "description": "Proposal sent and reviewed by client CFO.",
    "due_at": "2026-10-15T17:00:00Z",
    "assignee_id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d",
    "status": "completed",
    "created_by_type": "user",
    "created_by_id": "a1b2c3d4-e5f6-4a5b-8c9d-0e1f2a3b4c5d",
    "completed_at": "2026-10-07T16:45:00Z",
    "created_at": "2026-10-07T16:30:00Z",
    "updated_at": "2026-10-07T16:45:00Z",
    "contact": {
      "id": "7b8f9e2a-4c1d-48ef-9123-bcde456789ab",
      "name": "Jane Doe",
      "phone_number": "+14155550199"
    }
  }
  ```

  ```json 404 Not Found theme={null}
  {
    "detail": "Task not found"
  }
  ```

  ```json 401 Unauthorized theme={null}
  {
    "detail": "Unauthorized"
  }
  ```
</ResponseExample>

***

<div
  style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
backgroundColor: "rgba(255, 255, 255, 0.03)",
border: "1px solid rgba(255, 255, 255, 0.08)",
borderRadius: "16px",
padding: "10px 18px",
marginTop: "40px",
gap: "16px",
flexWrap: "wrap"
}}
>
  <a
    href="/api-reference/crm/get-task"
    style={{
display: "inline-flex",
alignItems: "center",
gap: "6px",
color: "#94A3B8",
textDecoration: "none",
fontSize: "14px",
fontWeight: "500",
padding: "4px 8px"
}}
  >
    <span style={{ fontSize: "16px" }}>‹</span> Previous
  </a>

  <div
    style={{
display: "flex",
alignItems: "center",
gap: "16px",
backgroundColor: "rgba(255, 255, 255, 0.04)",
border: "1px solid rgba(255, 255, 255, 0.06)",
borderRadius: "12px",
padding: "8px 16px",
marginLeft: "auto"
}}
  >
    <div style={{ textAlign: "right" }}>
      <div style={{ fontSize: "13px", fontWeight: "700", color: "#F8FAFC" }}>Delete task</div>

      <div style={{ fontSize: "11px", color: "#94A3B8", maxWidth: "260px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }}>
        DELETE /api/v1/crm/tasks/\{task\_id}
      </div>
    </div>

    <div style={{ width: "1px", height: "24px", backgroundColor: "rgba(255, 255, 255, 0.1)" }} />

    <a
      href="/api-reference/crm/delete-task"
      style={{
  display: "inline-flex",
  alignItems: "center",
  gap: "6px",
  color: "#94A3B8",
  textDecoration: "none",
  fontSize: "14px",
  fontWeight: "500"
}}
    >
      Next <span style={{ fontSize: "16px" }}>›</span>
    </a>
  </div>
</div>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.