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

# Create or change a conversation field

PUT`/messenger/{messengerId}/conversation-fields/{fieldKey}`

Creates the field with this key, or changes its label, options or position. Safe to repeat: the same definition again answers `changed: false`. Its type cannot change while a conversation has a value for it (409). Owners and admins.

## Path Parameters

`messengerId`

numberrequired

`fieldKey`

stringrequired

## Response

200

**cURL**

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

**JavaScript**

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

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

response = requests.put(url)

print(response.text)
```
