Skip to main content

InvalidEntityTypeError

error objectrequired
codestringrequired

Machine-readable error code

Possible values: [INVALID_ENTITY_TYPE]

Example: INVALID_REQUEST
messagestringrequired

Human-readable error message

Example: This operation is only valid for MediaObject entities
details object

Additional error details specific to the error type

entityTypestring

The actual entity type of the requested entity

Example: http://pcdm.org/models#Collection
expectedTypestring

The expected entity type for this operation

Example: http://schema.org/MediaObject
property name*any

Additional error details specific to the error type

Example: {"field":"id","value":"invalid-uri"}
requestIdstring<uuid>

Unique identifier for this request, useful for debugging

Example: 550e8400-e29b-41d4-a716-446655440000
InvalidEntityTypeError
{
"error": {
"code": "INVALID_REQUEST",
"message": "This operation is only valid for MediaObject entities",
"details": {
"field": "id",
"value": "invalid-uri"
},
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}
}