Event Ingestion

Ingest events to Togai in batch

Changed on

This API let’s you to ingest events in batch upto 500 events. Ingest large amounts of events up to 500 in batches in an array using this API.

post/ingestBatch

Request

Request body

Example request

{
  "events": [
    {
      "id": "c0b1306d-f506-43a6-856b-69221efaee6b",
      "timestamp": "2022-06-15T07:30:35.123",
      "attributes": [
        {
          "name": "message",
          "unit": "characters"
        }
      ]
    }
  ]
}

Response

Successfully accepted to process all the events from payload.

successboolean
statusCodeinteger
namestring
messagestring
codestring
detailsobject

Example response

{
  "success": true
}

Changes

    • info

      the /// request property's maxLength was increased from 50 to 200

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      the request property // became optional

    • info

      the response property became required for the status