# Update conversation branch selection

```http
PUT /conversations/{conversation_id}/branch-selection
```

Select which branch is the current path of a conversation after the user switches branches, so that later messages continue from the selected message; returns the ID of the selected message.

## Parameters

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

## Request body

| Field        | Type   | Required | Description |
| ------------ | ------ | -------- | ----------- |
| `message_id` | string | Yes      |             |

## Responses

| Status | Description                                                                                                 |
| ------ | ----------------------------------------------------------------------------------------------------------- |
| 200    | Updated branch selection                                                                                    |
| 400    | Bad request                                                                                                 |
| 401    | Unauthorized                                                                                                |
| 403    | Forbidden                                                                                                   |
| 404    | Not found                                                                                                   |
| 413    | Payload too large                                                                                           |
| 500    | Server error                                                                                                |
| 503    | internal: authentication state is temporarily unavailable and the request was not processed; retry shortly. |
