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

# Update a document

PATCH`/project/{id}/documents/{docId}`

Rename a document, or set its author or publication date.

## Path Parameters

`id`

numberrequired

`docId`

numberrequired

## Response

200

**cURL**

```bash
curl --request PATCH \
  --url 'https://api.workover.io/project/{id}/documents/{docId}' \
  --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/{id}/documents/{docId}', 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/{id}/documents/{docId}"

payload = {}

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

print(response.text)
```
