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

# Replace an image in every document

POST`/project/{projectId}/media/{assetId}/replace`

Raise one fix that swaps this image for another image from the same library in every document that uses it. Nothing changes until a person accepts the fix in Health; the old image stays in the library.

## Path Parameters

`projectId`

numberrequired

`assetId`

numberrequired

## Response

201

**cURL**

```bash
curl --request POST \
  --url 'https://api.workover.io/project/{projectId}/media/{assetId}/replace'
```

**JavaScript**

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

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

response = requests.post(url)

print(response.text)
```
