Create new job
POST/jobs/
Create a new job for processing using the provided workflow
and profile
.
After you create a job, use the addData
API request to add data such as documents, images, and other
accepted files for processing.
Delete all created jobs when they are finished using the deleteJob
request.
Note that there are two types of options that you can use:
- Job options: Set in the body of the
creteJob
API request. - Document options: Set in the
addData
API request.
Request
Query Parameters
The name of the workflow.
If no workflow is specified, the default workflow of the service is used.
The name of the profile.
If no profile is specified, the default profile of the workflow is used.
The name of the job.
This value may be used by the workflow, e.g. to name the output file when merging multiple inputs.
- application/json
- application/xml
Body
Body of the createJob
request.
Note that there are two types of options that you can use:
-
Job options: Set in the body of the
creteJob
API request. -
Document options: Set in the
addData
API request.
Array [
DOC.PASSWORD
: Password used for password protected files. This option can be added multiple times, where all passwords are tried. The list of passwords is also used to open embedded and/or attached files.]
Option name
The list of supported options depends on the profile
used. Common names are:
The option's value.
Note that the value must match the type required by the option. Otherwise workflow processing will abort with
an error code option
.
Body
Body of the createJob
request.
Note that there are two types of options that you can use:
-
Job options: Set in the body of the
creteJob
API request. -
Document options: Set in the
addData
API request.
Array [
DOC.PASSWORD
: Password used for password protected files. This option can be added multiple times, where all passwords are tried. The list of passwords is also used to open embedded and/or attached files.]
Option name
The list of supported options depends on the profile
used. Common names are:
The option's value.
Note that the value must match the type required by the option. Otherwise workflow processing will abort with
an error code option
.
Responses
- 201
- 400
- 415
- 503
Successful response to the createJob and getJobInfo requests
- application/json
- application/xml
- Schema
- Example (from schema)
Schema
Unique ID of the job.
The job ID can be used to control the job, e.g. start it, as well as identify corresponding messages in the service log file. Therefore it is highly recommended to log the job ID in the client log file.
status
object
required
Possible values: [creating
, pending
, processing
, completed
]
A message describing the job's status in more detail. Example: "Converting 'input.pdf' to PDF/A."
{
"jobId": "string",
"status": {
"code": "creating",
"message": "string"
}
}
- Schema
- Example (from schema)
Schema
Unique ID of the job.
The job ID can be used to control the job, e.g. start it, as well as identify corresponding messages in the service log file. Therefore it is highly recommended to log the job ID in the client log file.
status
object
required
Possible values: [creating
, pending
, processing
, completed
]
A message describing the job's status in more detail. Example: "Converting 'input.pdf' to PDF/A."
<root>
<jobId>string</jobId>
<status>
<code>creating</code>
<message>string</message>
</status>
</root>
-
Request could not be parsed
-
The options are not valid JSON
-
The requested workflow or profile does not exist
- application/problem+json
- application/problem+xml
- Schema
- Example (from schema)
Schema
A URI reference that identifies the problem type. Note that this URI cannot be dereferenced.
A short, human-readable summary of the problem type.
The HTTP status code.
A human-readable explanation specific to this occurrence of the problem.
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string"
}
- Schema
- Example (from schema)
Schema
A URI reference that identifies the problem type. Note that this URI cannot be dereferenced.
A short, human-readable summary of the problem type.
The HTTP status code.
A human-readable explanation specific to this occurrence of the problem.
<root>
<type>string</type>
<title>string</title>
<status>0</status>
<detail>string</detail>
</root>
The content type is neither application/json nor application/xml
Too many jobs.
- application/problem+json
- application/problem+xml
- Schema
- Example (from schema)
Schema
A URI reference that identifies the problem type. Note that this URI cannot be dereferenced.
A short, human-readable summary of the problem type.
The HTTP status code.
A human-readable explanation specific to this occurrence of the problem.
{
"type": "string",
"title": "string",
"status": 0,
"detail": "string"
}
- Schema
- Example (from schema)
Schema
A URI reference that identifies the problem type. Note that this URI cannot be dereferenced.
A short, human-readable summary of the problem type.
The HTTP status code.
A human-readable explanation specific to this occurrence of the problem.
<root>
<type>string</type>
<title>string</title>
<status>0</status>
<detail>string</detail>
</root>