# ASSET_TYPE_NOT_ACCEPTED: A field linking this asset does not accept this type of file

> You replaced an asset's file with one of a type that a field linking the asset does not allow, such as a PDF in an image field.

Sent by the management API (400). The page: https://coho-cms.com/errors/asset-type-not-accepted/

## What to do

Replace it with a file of an accepted type, or unlink the asset from that field first. The detail names the field.

## The response

```json
{
  "code": "ASSET_TYPE_NOT_ACCEPTED",
  "type": "https://coho-cms.com/errors/asset-type-not-accepted",
  "title": "A field linking this asset does not accept this type of file",
  "status": 400,
  "detail": "What went wrong in this request, in a sentence.",
  "instance": "/v1/projects/…"
}
```

Every error code: https://coho-cms.com/errors/
