> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Set how closed conversations behave

PUT`/messenger/{messengerId}/thread`

Set `closedStaysClosed`: when true, a visitor writing to a closed conversation starts a new one and the closed one stays closed. Safe to repeat: setting the value it already has writes nothing. Owners and admins only.

## Path Parameters

`messengerId`

numberrequired

## Response

200

**cURL**

```bash
curl --request PUT \
  --url 'https://api.workover.io/messenger/{messengerId}/thread'
```

**JavaScript**

```javascript
const options = {
  method: 'PUT'
};

fetch('https://api.workover.io/messenger/{messengerId}/thread', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/messenger/{messengerId}/thread"

response = requests.put(url)

print(response.text)
```
