DataHub

Ingest CSV file

Sends a batch of events to DataHub using a CSV file, either uncompressed or compressed in ZIP or GZ format. It may take up to 15 minutes for the data to become available in the DoiT console.

post/datahub/v1/csv/upload

Request

  • Base URL
    https://api.doit.com
  • URL
    https://api.doit.com/datahub/v1/csv/upload
  • Auth
    • API key in header Authorization
    • or API key in header X-Tenant-Id and API key in header Authorization

Request body multipart/form-data

providerstring

The identifier of the data provider. Allowed characters: alphanumeric (0-9,a-z,A-Z), underscore (_), space, dash (-).

filestring binary

The CSV file to upload, either uncompressed or compressed in ZIP or GZ format. The maximum file size is 30 MB.

Example request

{
  "provider": "Datadog"
}

Response

OK - Ingestion succeeded.

batchstring

batch id, generated during ingestion

ingestedRowsinteger

the number of events that have been accepted for processing

Example response

{
  "batch": "your_file.csv.gz_1730972725212",
  "ingestedRows": 15
}

Changes

No recorded changes to this operation across all 1 revision of this API.