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

# Rename or archive a contact attribute

PATCH`/workspace/{orgId}/contact-attributes/{key}`

Change its label, or archive it (hidden, and refused as a new value; stored values are kept) or restore it. Owners and admins.

## Path Parameters

`orgId`

numberrequired

`key`

stringrequired

## Response

200

**cURL**

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

**JavaScript**

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

fetch('https://api.workover.io/workspace/{orgId}/contact-attributes/{key}', 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-attributes/{key}"

response = requests.patch(url)

print(response.text)
```
