PARAMETERS_INCONSISTENT
Some special values can be delivered to the API service in multiple locations of a single API request (e.g., in HTTP headers and in query arguments). If this is the case all the values must be the same (to prevent CSRF).
Reason
- Values in alternative locations are not the same
- The array of resource IDs contains duplicates
Solution
- Be sure to specify the same value in all the alternative locations, that you use (see below)
- Check if anything between the API client and the API service does not insert wrong values (e.g., this can be the web browser, that adds the session ID into cookies)
- Remove duplicates from the IDs array
Example
{
    "status": 400,
    "errors": [
        {
            "code": "PARAMETERS_INCONSISTENT",
            "message": "One or more parameters appear in different locations and do not match, possible CSRF attempt",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/PARAMETERS_INCONSISTENT"
        }
    ]
}
Alternative locations
Here is the list of alternative locations, values of which must be the same:
- The X-OTPHTTP header and the_otpquery argument (see OTP authentication step)
- The X-PortalHTTP header and the_portalquery argument
- The X-Session-IDHTTP header, the_session_idquery argument and the session ID cookie (see Session)
- The X-TimestampHTTP header and the_timestampquery argument (see Authentication)
- The X-TokenHTTP header and the_tokenquery argument (see Authentication)