# Update conversation status

Updates conversation status.

```http
PUT https://api.pozy.ai/v1/inbox/conversations/{conversationId}
```

- Area: Inbox / Messages
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `conversationId` (string, required)

## Request body

Content type: `application/json`

- `accountId`, string, required
- `status`, string, required: One of `active`, `archived`

## Example request

```bash
curl -X PUT "https://api.pozy.ai/v1/inbox/conversations/6e525f3820fc636aa96d2ee9" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "status": "active"
}'
```

```ts
const res = await fetch("https://api.pozy.ai/v1/inbox/conversations/6e525f3820fc636aa96d2ee9", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.POZY_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    accountId: "696e0b682d0a31188e7a2ba9",
    status: "active"
  }),
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.put(
    "https://api.pozy.ai/v1/inbox/conversations/6e525f3820fc636aa96d2ee9",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    json={
        "accountId": "696e0b682d0a31188e7a2ba9",
        "status": "active",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `data`, object
  - `id`, string
  - `accountId`, string
  - `status`, string: One of `active`, `archived`
  - `platform`, string
  - `updatedAt`, string (date-time)

```json
{
  "success": true,
  "data": {
    "id": "6bfebd43ddc270f6d2c56fc5",
    "accountId": "696e0b682d0a31188e7a2ba9",
    "status": "active",
    "platform": "instagram",
    "updatedAt": "2026-10-02T09:00:00.000Z"
  }
}
```
