Type mismatch
Problem type
type-mismatch
Status code
400 Bad Request
Reasons
Indicates that the value for a parameter has a different type than expected.
A common cause is a request with an id
parameter for which the name of the resource
was provided instead of the ID. The expected type in this case is integer
while the
actual type is string
.
This response also occurs when a request with a date
parameter was provided, but the given date was not formatted properly.
Remedy
Check if you provided the correct type for all request parameters (i.e. query parameters). The error detail outlines which parameter caused the error.
Example problem document
HTTP/1.1 400 Bad Request
Content-Type: application/problem+json
Content-Length: 275
{
"type" : "type-mismatch",
"title" : "a parameter had an incorrect type",
"detail" : "provided value for parameter 'id' not supported.",
"_links" : {
"documentation" : {
"href" : "https://apidocs.inxmail.com/xpro/rest/v1/problems/type-mismatch"
}
}
}