Print Beat API ScitexJobsDataParams

Hello 

I try to use the service --> https://printos.api.hp.com/printbeat/externalApi/gsb/scitexJobs/records

I have generated a key and a secret by creating a connector. 

Before doing it in code I try to make it work from your print-beat-api-test site --> https://developers.hp.com/print-beat-api-test

Here is how I fill the API test form:

Configuration - BAse URl : "https://printos.api.hp.com/printbeat"

API Key : "************"

API scret : "**************"

Choose an API call : Get list and properties of printed jobs - POST

Query Parameters -> unitSystem : "Metric" 

It's the Request Body that I have problems with 

I checked the composition of the body --> using this documentation https://developers.hp.com/printbeat-api-printos/api/print-beat-api-documentation

POST /externalAPI/gsb/scitexJobs/records 

example body : 

{
  "machineSns": [
    "string"
  ],
  "dateFrom": "string",
  "dateTo": "string",
  "startRow": 0,
  "endRow": 0,
  "selectedKpiTab": "string",
  "searchString": "string",
  "sortExpression": "string"
}
My body has exactly the same structure 

But the error I have is the following 

400 Bad Request

Date: Wed, 13 Oct 2021 10:17:15 GMT Content-Type: application/json Content-Length: 294 Connection: keep-alive Cache-Control: no-cache, no-transform Strict-Transport-Security: max-age=15724800; includeSubDomains

{ "statusCode": 400, "message": "javax.ws.rs.NotSupportedException", "moreInfoUrl": null, "developerInfo": "RESTEASY003200: Could not find message body reader for type: class indigo.cloud.services.Printbeat.bl.externalApiScitex.ScitexJobsDataParams of content type: */*", "subCode": 0, "serviceName": null }

While the structure is the same 

{
  "machineSns": [
    "001cbe75" // Here I imagine that it is the id of the machine (DeviceIdD)
  ],
  "dateFrom": "2021-10-12 00:00:00",  // --> This is the right format 
  "dateTo": "2021-10-13 00:00:00",  // --> Same
  "startRow": 1, // --> Interger 
  "endRow": 1, // --> Interger 
  "selectedKpiTab": "OverallPerformance", -->I didn't know what to put here , I don't have an example 
  "searchString": "test", --> I guess it's the name of the Job searched? 
  "sortExpression": "" ---> I didn't find any explanation in the doc about this field .... ?
}

In any case even if the information is not good the structure and the body and the same with the right type I should not have this error: 

Could not find message body reader for type: class indigo.cloud.services.Printbeat.bl.externalApiScitex.ScitexJobsDataParams of content type

I am missing something?

Thanks for your help 


I am having the exact same problem. Did you solve this?


unfortunately not.
I'm sorry.
Thanks HP