using this API
restClient.post( restClient.restApi("v1.0").account("~").extension("~").fax().endpoint(),
qParam);
with Query parameters
QueryParameter[] qParam = new QueryParameter[3];
QueryParameter p0 = new QueryParameter("attachment", "");
QueryParameter p1 = new QueryParameter("faxResolution", "High");
QueryParameter p2 = new QueryParameter("to", "+14694804418");
qParam[0] = p0;
qParam[1] = p1;
qParam[2] = p2;
The error message is:
com.ringcentral.RestException: HTTP status code: 400
{
"errorCode" : "InvalidParameter",
"message" : "Parameter [] value is invalid",
"errors" : [ {
"errorCode" : "CMN-101",
"message" : "Parameter [] value is invalid",
"parameterName" : ""
} ],
"parameterName" : ""
}