---
title: "Update a conversation."
method: PUT
path: "/api/v1/projects/{projectId}/conversations/{sessionId}"
tags: ["Conversations"]
---

# Update a conversation.

`PUT /api/v1/projects/{projectId}/conversations/{sessionId}`

Update a conversation within an agent (formerly known as project) identified by its unique projectId and sessionId. This endpoint allows you to modify and update the properties of a specific conversation. By providing the projectId and sessionId, you can target the desired conversation and make changes to its attributes.
Here is an example to update a conversation: [API](https://github.com/Poll-The-People/customgpt-cookbook/blob/main/examples/Update_Delete_a_conversation.ipynb) [SDK](https://github.com/Poll-The-People/customgpt-cookbook/blob/main/examples/SDK_Update_Delete_a_conversation.ipynb).

## Path parameters

- `projectId` integer, required
- `sessionId` string, required

## Request body

- object
  - `name` string — The new name of the conversation

## Response `200`

Update conversation information

- object
  - `status` 'error' | 'success' — The status of the response
  - `data` Conversation
    - `created_at` string, date-time — When was this conversation created?
    - `updated_at` string, date-time — When was this conversation updated?
    - `deleted_at` string, date-time — When was this conversation deleted?
    - `id` integer — Conversation ID
    - `name` string — Conversation name
    - `project_id` string — Agent ID for this conversation
    - `created_by` string — User ID for the user who created this conversation
    - `session_id` string, uuid — Session ID for this conversation

## Other responses

- `400` — Bad Argument
- `401` — API Token is either missing or invalid
- `404` — Agent not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/poll-the-people/apis/customgpt-ai.md) · [All operations](https://skmtc.net/poll-the-people/apis/customgpt-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poll-the-people/customgpt-ai/revisions/b80e6dfcf78d/schema)
