9.9.2 Add Job document

POST http://{{rip_ip}}:5438/jobs/{{job_id}}/add

The second call adds a document (which can be any of the supported types/formats like PDF, TIFF, JPEG, Aur, DXF, etc).

The JobGUID is the JobGUID used for the first call. The document supplied will be added to the job specified.

Documents up to 256 MB can be sent completely in the body. For larger files use “Transfer-Encoding” : “chunked”.

9.9.2.1. Single document

When sending a single document the request headers “Document-Name” and “Document-Last” are optional. As soon as the document has been received the job is created.

9.9.2.2. Multiple documents

When sending multiple documents the last document needs to be marked with the request header “Document-Last” value “true”. The other documents need to be sent with the request header “Document-Last” value “false”. 

Each document should have an unique “Document-Name” value, containing a name that can be stored on disk (so not containing slashes or other not allowed characters). The name must match the document name used in the document section of the previous sent XML. When the document does not match the document in the section then 404 “Document not found” is returned.

Request

Binary content of the document in its native format.

Response

Success
  • 200 OK : {"Message":"Document stored"}
Error
  • 404 Not Found : {"Message":"Job not found"}
  • 404 Not Found :  {"Message":"Document not found"}

HEADERS

KeyDatatypeRequiredDescription
Document-NamestringName of the document (usually the file name)
Document-LastbooleanTrue when this is the last document (default) or false when more follow.