Error code
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.
- Code
ASSET_TYPE_NOT_ACCEPTED- Management API
- 400
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
Every refusal is an application/problem+json document. Its detail says what went wrong in that request; its type is this page.
{
"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 code
The error codes, in a table with a filter.