A job is a unique instance of a pre-configured workflow that delivers the outputs defined by the JSON parameters shown in the job configuration window.
Create a job parameters file (
job_params.json) with the JSON parameters from the job configuration window. An example is shown in the snippet below. For more information: JSON parameters.
Define a variable for the jobs of your workflow. The workflow ID was defined in the article Create a workflow (API).
Before running the job, you can view the job estimation, which includes the total processing time and price. Create a job estimation file (
job_estimation.json) containing the tasks and inputs. An example is shown in the snippet below.
tasks parameter contains information about each block included in the workflow: block ID, block version, block name and parent block (if applicable). For more information: Add blocks to a workflow (API).
inputs parameter contains information about the job parameters (see request body above). For more information: Configure job.
Estimate the credit costs of your job:
curl -s POST -H "Authorization: Bearer $PTOKEN" \ -H "Content-Type: application/json" "https://api.up42.com/projects/$PROJ/estimate/job" \ -d @job_estimation.json | jq '.'
To proceed, please go to Run job (API).