Run a data processing job, step 1: create job and get upload URL(s)
run_data_jobFirst step of processing new data files through an already-configured data spec: creates a job and returns presigned upload URL(s) for each file. Upload the file(s) per the returned instructions, then call finish_data_job with the returned jobId to start processing and wait for it to complete.
Do NOT call this right after onboard_data_source/finish_data_source_onboarding or update_data_spec/finish_data_spec_update unless loadSampleData was explicitly set to false there — by default those already load and process the sample file as their own job (see the returned lastJobId), so calling run_data_job again for that same file creates a redundant second job. Only use this for files beyond the initial sample (new batches, additional files to process later).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| specName | Yes | Name of the already-configured data spec to process files through. | |
| fileNames | Yes | File names of the data files to process (e.g. ["jan.csv", "feb.csv"]) | |
| workspaceId | No | Workspace to act on. Defaults to your only workspace if you have exactly one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | ||
| jobId | Yes | ||
| message | Yes | ||
| nextStep | Yes | The finish_data_job call to make once upload(s) are done. | |
| specName | Yes |