Creating Import Jobs
Import jobs belong to aSpace — which has a globally unique ID. To create an import job, you’ll need to retrieve your space ID from the platform URL:
/organizations/:organization_id/spaces/:space_id.
Import Job Tips:
- Create a reusable mutation to create a file import job that will read files from your bucket
-
Validate your file import job before you begin your file import job. Using two additional parameters -
dryRunandfileName- as inputs when creating the import job mutation.-
dryRun(boolean): If true, the import job will be attempted but no changes will be written. The
validationResultfield may be requested to check the validation status. - fileName(string): The file name to perform a dry run on. If a file name is not selected, the dry run will be performed on the first file.
-
dryRun(boolean): If true, the import job will be attempted but no changes will be written. The
- Dry Run File Import Job
- Create File Import Job Mutation
The variables provided are an example of one particular mapping.For more information on mapping your file, please consult the file schema documentation located on within each data connector page or here on the available fields for all queries and mutations.
Google Colab
Querying for Import Jobs and Files
You can query for import jobs off of aSpace node.
FileImportJobConnection from a Space. If you have a large number of import jobs, you will have to use pagination to pull the complete list. This data can then be viewed or used in other queries.
To view files that belong to an import job, query for files using an import job node since the files belong to an import job. For instance, to view failing files and their error message, use the FileImportJobFileConnection which returns files with a passed status or all files if no status is provided. You may additionally filter files based on a date range, providing an RFC3339 compliant date time shown below.
Google Colab
Deleting Import Jobs
Deleting import jobs using a mutation simply requires you to know theID of the import job you want to delete.