Invalid body property

This problem occurs when the request body contains an invalid or malformed property, causing the server to reject the request.

Description

Your client application issued a request to an API with a request body that contains an invalid or malformed property. This typically means that one or more properties in the request body do not match the expected format or data type defined by the API.

Example

{
  "type": "https://dev.euipo.europa.eu/problems-registry/invalid-body-property",
  "title": "Invalid body property",
  "status": 400,
  "detail": "The request body contains an invalid or a malformed property.",
  "instance": "/messages/batch-unread",
  "code": "invalid-body-property",
  "errors": [
    {
      "detail": "The value provided for the property 'unreadIndicator' does not correspond to the expected type.",
      "pointer": "#/unreadIndicator"
    }
  ],
  "correlationId": "5f23c78138fb42fbddf422ecb589dc5c"
}

Troubleshooting Steps

  • Review the API documentation: Ensure that the request body matches the expected schema defined by the API.
  • Validate the data types: Check that all properties in the request body have the correct data types.
  • Check for typos: Ensure there are no typos in the property names or values.

Error Details

The errors property in the response provides detailed information about specific issues within the request body. Each object in the errors array includes:

  • detail: A description of the specific error.
  • pointer: A JSON Pointer that indicates the location of the error within the request body.