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

# Set the chat widget draft live

POST`/messenger/{messengerId}/draft/publish`

Sets every changed setting live in one change, then drops the draft. A setting the rules refuse refuses the lot (400 naming it) and keeps the draft. With nothing pending it changes nothing and answers `published: []`. Owners and admins only.

## Path Parameters

`messengerId`

numberrequired

## Response

200

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/messenger/{messengerId}/draft/publish'
```

**JavaScript**

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

fetch('https://api.workover.io/messenger/{messengerId}/draft/publish', 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}/draft/publish"

response = requests.post(url)

print(response.text)
```
