# Update conversation message

```http
PATCH /conversations/{conversation_id}/messages/{message_id}
```

Replace the parts of an existing message to edit it in place; to keep the original, create a branch instead.

## Parameters

| Name              | In   | Required | Description |
| ----------------- | ---- | -------- | ----------- |
| `conversation_id` | path | Yes      |             |
| `message_id`      | path | Yes      |             |

## Request body

| Field   | Type  | Required | Description |
| ------- | ----- | -------- | ----------- |
| `parts` | array | Yes      |             |

## Responses

| Status | Description                                                                                                                |
| ------ | -------------------------------------------------------------------------------------------------------------------------- |
| 200    | Updated message                                                                                                            |
| 400    | Bad request                                                                                                                |
| 401    | Unauthorized                                                                                                               |
| 403    | Forbidden                                                                                                                  |
| 404    | Not found                                                                                                                  |
| 413    | Payload too large                                                                                                          |
| 500    | Server error, or query-error: the message is still streaming and cannot be edited or deleted; retry once it has completed. |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly.                |
