XMLRPC: jobs.finish

« index

 Finish a job by uploading the result

 Signature
 ~~~~~~~~~
 jobs.finish(factory_name, job, format, document)
 
 Arguments
 ~~~~~~~~~
 - factory_name (string): The name of the factory that processed the job.
 - job (string): The job ID that was returned by jobs.poll().
 - format (string): 3-letter code specifying the format of the result (pdf, png or odf).
 - document (string): Base64-encoded contents of the result document.

 Return value
 ~~~~~~~~~~~~
 - result (string): The ID of the result

 Example request
 ~~~~~~~~~~~~~~~
 POST /xmlrpc HTTP/1.0
 Host: example.org
 Content-Type: text/xml
 Content-Length: 10162

 <?xml version='1.0'?>
 <methodCall>
   <methodName>jobs.finish</methodName>
   <params>
     <param><value><string>My factory</string></value></param>
     <param><value><string>4975c9c6-79a0-43a1-8134-0ba5c0a80105</string></value></param>
     <param><value><string>pdf</string></value></param>
     <params><value><string>UEsDBBQA ... AAAAAA==</string></value></params>
   </params>
 </methodCall>

 Example response
 ~~~~~~~~~~~~~~~~
 HTTP/1.1 200 OK
 Content-Type: application/xml
 Content-Length: 195
 Connection: close

 <?xml version="1.0" encoding="iso-8859-1"?>
 <methodResponse>
   <params>
     <param><value><string>497d9737-a2cc-4682-9d90-0136c0a80105</string></value></param>
   </params>
 </methodResponse>

Admin: