5.5 Update Print Count

POST https://{{domain}}/api/v2/job/{{JobGUID}}/addcopy

Increases the print count of a job. This method is used when the job is no longer present on the RIP and thus not updated using api/v2/job. It allows individual devices to send print complete messages independently.

Request:

JSON object containing:

  • Date (string, required): ISO8601 date in UTC timezone.
  • Page (integer, required): page on which the copy count applies. 0 based.
  • Copies (integer, required): number of copies to add
  • InkUsage(optional): used inks
    • Inks
      • Name(string, required): name of ink used
      • Ml(float, required): used ink in ml
    • Total(float,required): total used inks
  • Duration (int, optional):
  • CutLength (real, optional):
  • DeviceName (string,optional):

Response:

Content-type: application/json

The messages marks successful processing. Added is true when the update lead to an update of the job (so no duplicate)

Success:

  • 200 OK : Saved

Request Body

{"Date"=>"{{$isoTimestamp}}", "Page"=>3, "Copies"=>1, "Duration"=>5, "CutLength"=>1, "DeviceName"=>""}