8.2.32 /api/v1/tleimport

This API endpoint lets you upload and import a list of TLE parameter sets from a data file. The expected file format is compatible to the well known 'geo.txt' file from celestrak.com. The file must contain three lines of text for each satellite, the firs line contains the satellite name, followed by two lines in TLE format. The norad number contained in both lines of the TLE format is used to identify for which satellite each record shall be used. The satellite name is treated as a comment only.

Supported HTTP methods: POST, HEAD, OPTIONS

POST /api/v1/tleimport

Expects a SatDbTleImport document containing the file to import along with some additional parameters.

Parameters: none

Expected Payload: The SatDbTleImport document containing the file to import and the import mode to use.

Replied Payload: none, except for errors.

Return Codes:

Code Description
204 OK, the file has been imported to the database. Do data is returned.
400 The file could not be parsed. In this case an ApiError document is returned, describing details of the error.
401 not logged in. In this case an ApiError document is returned, describing details of the error.
500 DB is not writable. In this case an ApiError document is returned,describing details of the error.