ONE_FIELD_EXPECTED

In terms of the error a "field" is a special named value, that is used to deliver a value for a resource's field. Fields should be specified in the request body.

Parameters

Messages with this error code will include the parameters field with names of the fields, only one of which should be specified.

Reason

  • The API service can use only one fields in this set (see parameters)

Solution

  • Keep only one field of the specified set (see parameters)

Example

{
    "status": 400,
    "errors": [
        {
            "code": "ONE_FIELD_EXPECTED",
            "parameters": [ "until", "since" ],
            "message": "This action expects only one of the related fields to be specified",
            "more_info": "https://developer.kayako.com/api/v1/reference/errors/ONE_FIELD_EXPECTED"
        }
    ]
}