---
title: "Update chat"
method: PUT
path: "/ai/chats/{uuid}"
tags: ["AI - Chats"]
---

# Update chat

`PUT /ai/chats/{uuid}`

Update a chat session

## Path parameters

- `uuid` string, uuid, required — Chat identifier.

## Request body

- object — Request body schema.
  - `name` string, nullable — Chat name.

## Response `200`

Successful response

- object
  - `chat` object, required — Updated chat details.
    - `uuid` string, required
    - `slug` string, required
    - `workspaceUuid` string, required
    - `userUuid` string, nullable, required
    - `agentUuid` string, nullable, required
    - `releaseUuid` string, nullable, required
    - `name` string, nullable, required
    - `trigger` unknown, required
    - `heartbeat` object, nullable, required
      - `intervalMinutes` integer, required
      - `maxMessages` integer, required
      - `prompt` string, nullable, required
    - `evaluator` object, nullable, required
      - `rubric` string, required
      - `threshold` number, required
    - `activeStreamUuid` string, nullable, required
    - `creditsUsedCount` number, required
    - `createdAt` string, required
    - `updatedAt` string, required
    - `deletedAt` string, nullable, required
    - `lastMessage` object, nullable, required
      - `uuid` string, required
      - `workspaceUuid` string, required
      - `agentUuid` string, nullable, required
      - `releaseUuid` string, nullable, required
      - `chatUuid` string, required
      - `userUuid` string, nullable, required
      - `status` 'pending' | 'generating' | 'success' | 'error' | 'cancelling' | 'cancelled', required
      - `errorMessage` string, nullable, required
      - `type` 'user' | 'assistant', required
      - `createdAt` string, required
      - `updatedAt` string, required
      - `finishedAt` string, nullable, required
      - `deletedAt` string, nullable, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
