> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.rask.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# media_purpose_mismatch

> Media purpose mismatch: HTTP 422 from the Rask API v3. What it means, what to do and which operations return it.

| Status | `retry` | `recommendation` |
| - | - | - |
| 422 | `none` | `fix_request` |

## What happened

Media purpose mismatch. For example: Media e8f1a2b3 was imported with purpose project\_source, not voice\_sample.

## What to do

Import the sample again with purpose voice\_sample (createUpload or importMedia).

`fix_request`: change the request or its inputs; sent unchanged it fails again.

`none`: do not retry the request unchanged.

## Example

```json theme={null}
{
  "type": "https://docs.api.rask.ai/errors/media_purpose_mismatch",
  "title": "Media purpose mismatch",
  "status": 422,
  "detail": "Media e8f1a2b3 was imported with purpose project_source, not voice_sample.",
  "instance": "urn:uuid:7d5c0e9a-3f1b-4c2e-9a8d-6b4f2e1c0d93",
  "code": "media_purpose_mismatch",
  "retryable": false,
  "retry": "none",
  "recommendation": "fix_request",
  "hint": "Import the sample again with purpose voice_sample (createUpload or importMedia).",
  "errors": []
}
```

## Operations that return it

* [createVoiceClone](https://docs.api.rask.ai/operations/createVoiceClone.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.