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

# Set up Freshdesk escalation

PUT`/messenger/{messengerId}/freshdesk`

Change some of `{ domain, apiKey, mode, priority, groupId, tags, closeAfter }`; the rest keep their value. The first save needs `domain` (yourcompany.freshdesk.com) and `apiKey`. It starts in test mode, where escalating builds the ticket and creates nothing; `mode: "live"` needs a key check that worked since the address or key last changed. Saving the same values again changes nothing. Owners and admins.

## Path Parameters

`messengerId`

numberrequired

## Response

200

**cURL**

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

**JavaScript**

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

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

response = requests.put(url)

print(response.text)
```
