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

# Rename a document

PATCH`/project/doc/{docId}/title`

Change a document's title. The body, and any WordPress post it is linked to, are left as they are.

## Path Parameters

`docId`

numberrequired

## Response

200

**cURL**

```bash
curl --request PATCH \
  --url 'https://api.workover.io/project/doc/{docId}/title' \
  --header 'Content-Type: application/json' \
  --data '{}'
```

**JavaScript**

```javascript
const options = {
  method: 'PATCH',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch('https://api.workover.io/project/doc/{docId}/title', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/project/doc/{docId}/title"

payload = {}

response = requests.patch(url, json=payload)

print(response.text)
```
