Skip to content
Collection of public tools and scripts
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
test/upload-file
.env.sample
.gitignore
LICENSE
README.md
upload-file.sh

README.md

CircleCI

Aito tools

Collection of scripts and tools useful for Aito users.

upload-file.sh

Uploads a single ndjson file to an Aito environment. Executes a file upload flow. Requires jq command-line tool.

Example usage:

In the example we upload products to Aito.

  1. Create a schema to the Aito database

    curl -H "x-api-key: $API_KEY" -d@schema.json -X POST "https://my-aito-env.api.aito.ai/api/v1/schema"

    See the example schema.json contents.

  2. Run upload file script

    ./upload-file.sh products.ndjson https://my-aito-env.api.aito.ai

    This would upload products.ndjson to a products table in https://my-aito-env.api.aito.ai. See the example products.ndjson contents.

You can’t perform that action at this time.