How to Send Data to Transportant

How to Send Data to Transportant

You can send the files mentioned in this section to Transportant in one of three ways:
  1. By uploading them manually using the dashboard
  2. By connecting to our SFTP server and sending the files
  3. By uploading the files through the HTTP endpoint

Manual data import

This is the quickest way to import files. One common use of this is to test files before setting up an automated process using HTTP or SFTP. To perform a manual data import, follow these steps:
  1. From the main page of the dashboard, find the Administrative Tools section. There, click on Data Import. The Data Import page will open.
  2. Near the top right corner, click on Import Actions. A context menu will open.
  3. Click on Create Import.
  4. Select either full import or update.
  5. Select file to be imported.
  6. Click on Start Data Import.

SFTP server

You can request an account created at our SFTP server located at data.transportant.com, port 22. You can then use an SFTP client of your choice to send the files.
This server will always consume all the files once the connection is closed. This means that every time you connect, you won’t see any old files. The import process will begin as soon as the connection is terminated.
If you’d like to use this method, contact us at support@transportant.com for an username and password.
Every SFTP client is different so we are unable to provide step by step instructions on their use. However one of our customers passes on the tip that he needed to close the SFTP window in his client after uploading the file.

HTTP endpoint

Transportant provides an HTTP endpoint where you can upload files to be imported into our system. It can be easily automated using the command line or any major scripting language. Files are imported by executing POST requests against the endpoints below while providing an authentication token. Once a file is uploaded, it will be imported into the system within 24 hours. Status and errors for each import should be monitored in the dashboard’s Data Import section.

Endpoints

Full dump

Call this endpoint to completely replace information in the database. For example: if a students.csv file is uploaded via full dump, then all previous students will be removed and the ones in the file will be inserted.

Update

Call this endpoint to update information in the database. For example: if a students.csv file is uploaded via update, then the existing students will be updated with information from that file. Nothing will be removed.

Request format

The request to the endpoints above must follow these criteria:
  1. Have a X-School-Token header with the provided authentication token
  2. Be a POST request
  3. Be a multipart/form-data request
  4. Have the file be uploaded as the file variable

Example

If your authentication token is ABCDEF, and the file you wish to upload is students.csv, then an example curl call would be:
  1. curl -v --header "X-School-Token: ABCDEF" -F file=@students.csv https://api.transportant.com/api/import/update

Using curl on your computer

On Mac and Linux, curl is built in. On Windows, you can either add curl support or use the Invoke-WebRequest PowerShell module. Additionally, any scripting language that supports HTTP requests can be used.

Authentication token

Transportant staff will provide you with an authentication token to be used on the requests. Keep the token private, as it gives permission for anyone that has it to import data into your school.

Import frequency

For HTTP and SFTP imports, the system will automatically trigger the import as soon as files are received. Therefore, it is up to the customer to set up automated nightly jobs that ensure that those files are sent to our servers.

Blackout periods

Imports (both via SFTP and HTTP) will not be processed if sent during those hours:
  1. From 6 AM to 9 AM CST
  2. From 2 PM to 6 PM CST
Note that those times are in CST, so they will need to be converted to your timezone.
The blackout periods are needed to avoid excessive database load during peak usage hours.
    • Related Articles

    • Getting Started With Data Import

      What data needs to be imported for Transportant to provide services Transportant needs to know information about the school bus fleet, the routes and stops it operates on. Additionally, parents and students may use Transportant’s Bus Compass mobile ...
    • Freeze a Route or Stop from Data Import Changes

      You might want to ensure that future data imports do not change a particular route or a stop. To do this, open the Routes page in the Route Management section of the dashboard. Click the desired route (or the route that contains the desired stop), ...
    • Remove All Bus Passes From the System

      Overview There may be times when your district needs to remove all student bus passes (such as fobs, RFID cards, or barcodes) from the Transportant system — for example, at the end of the school year, or when resetting your database before summer ...
    • Back to School Guide

      ? Back to School with Transportant Best Practices for Starting the School Year ? Prefer a guided walkthrough? View the Back to School e-Learning Module Welcome to a new school year! This guide walks you through Transportant’s recommended steps to ...
    • How To Import Student Pictures with pictures.zip

      Although you do not have to upload student pictures to use Transportant, doing so lets you and especially your drivers get the most out of the system. Here's how to do that. How to Upload Pictures On your computer, create a folder named "pictures". ...