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

# Update an image's file name and alt text

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

Rename an image in a document and change its alt text. The file name becomes the media name on the next WordPress push.

## Path Parameters

`docId`

stringrequired

## Response

200

**cURL**

```bash
curl --request PATCH \
  --url 'https://api.workover.io/project/doc/{docId}/media'
```

**JavaScript**

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

fetch('https://api.workover.io/project/doc/{docId}/media', 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}/media"

response = requests.patch(url)

print(response.text)
```
