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

# Rename or archive an event name

PATCH`/workspace/{orgId}/contact-event-names/{name}`

Change its label, or archive it (new events of it are refused; those kept stay) or restore it. Owners and admins.

## Path Parameters

`orgId`

numberrequired

`name`

stringrequired

## Response

200

**cURL**

```bash
curl --request PATCH \
  --url 'https://api.workover.io/workspace/{orgId}/contact-event-names/{name}'
```

**JavaScript**

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

fetch('https://api.workover.io/workspace/{orgId}/contact-event-names/{name}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/contact-event-names/{name}"

response = requests.patch(url)

print(response.text)
```
