Job
Create job
Create a job that processes local files, using either a template or a custom directed acyclic graph (DAG).
POST
An local-file processing job is a job that takes one or more local files only as input, and whose temporary workflow exists only for the duration of the job’s run.
To run a workflow that was already created at some point in the past and still exists, see run workflow endpoint instead.
To run a workflow that takes files and data from remote locations as input (instead of local files), do the following instead:
- Create a source connector to the remote source locations.
- Create a destination connector to the remote destination location.
- Create a long-lived workflow that uses this specific source connector and destination connector.
- Run this long-lived workflow manually, if you have not already created the workflow to run on a schedule.
Body
string
required
Job configuration data.
- To use a workflow template for a job, include a
template_idfield that specifies the unique ID of the workflow template. For more information, see list templates. - To use a custom workflow definition for a job, include a
job_nodesfield that specifies the settings for the job’s workflow nodes. For instructions, see Workflow Nodes.
array
Input files to process. Upload as multipart/form-data, in the following format:For more information, see Unstructured API Quickstart - local-file processing jobs.
Response
string
required
Unique identifier for the job.
string
required
Unique identifier of the workflow that created this job.
string
required
Name of the workflow that created this job.
string
required
Job status. One of:
SCHEDULED, IN_PROGRESS, COMPLETED, STOPPED, FAILED.string
required
ISO 8601 timestamp when the job was created.
string
ISO 8601 duration of the job run.
array
IDs of input files for this job.
array
Output file metadata objects. Each object includes
node_id, file_id, node_type, and node_subtype.string
Job type. Default:
ephemeral.
