Invalid payload

Resolve invalid payload errors.

An invalid payload error indicates that the request body is malformed, contains an unsupported field value, or fails schema validation. This error requires you to correct the request before retrying.

Response

All error responses follow the Problem Details (RFC 9457) format, which defines the type, title, status, detail, and instance fields.

Here is an example of the response returned for this error:

{  "type": "https://croct.help/api/content/invalid-payload",  "title": "Invalid payload.",  "status": 400,  "detail": "Some of the request parameters are invalid.",  "violations": [    {      "path": "/context/page/url",      "reason": "Expected string"    }  ]}

The response includes the following additional field:

violations(optional)
Array<object>

The list of individual validation failures.

path
string

A JSON pointer to the invalid field.

reason
string

A human-readable explanation of the constraint that was violated.