File Importer API
Learn how to create and delete import jobs and query for job and file details using our programmatic API
Last updated
Was this helpful?
Learn how to create and delete import jobs and query for job and file details using our programmatic API
Last updated
Was this helpful?
Use the file importer API for a direct path between your cloud storage and the Arize platform.
While the Arize platform has an intuitive user interface for data ingestion workflows, the object store integration provides a direct way to easily set up jobs and automate job creation.
For a brief overview of GraphQL itself, please consult our .
To create an import job: you must complete the setup steps outlined for GCS or AWS to grant Arize access to your bucket.
Import jobs belong to a Space
-- 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.
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 - dryRun
and fileName
- 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 validationResult
field 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.
variables:
Alternatively, you may pass in the inputs directly:
You can query for import jobs off of a Space
node.
Query fields within an import job given specific criteria using the 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.
Deleting import jobs using a mutation simply requires you to know the ID
of the import job you want to delete.
Creating a File Import Job
Querying for Failed Files of an Import Job
For more information on mapping your file, please consult the file schema documentation located on within each data connector page or on the available fields for all queries and mutations.