Skip to main content

Create Async Data Request

POST 

/api/v1/historical-data/async

This endpoint creates a data request and responds immediately while the data is being processed in the background. The response will contain a status, indicating if the request is running or if it failed, and a requestId field that can be used to check the status of the request using the Get Data Request. The field outputFile indicates the URL to download the output file, when ready.

Request

Body

Body

    signals

    object

    required

    oneOf

    Signal search JSON

  • Array [

  • workspace stringrequired

    Name of the Workspace

    Example: Workspace 1
    asset stringrequired

    Name of the Asset

    Example: Asset 1
    division stringrequired

    Name of the Division

    Example: Division 1
    unit stringrequired

    Name of the Unit

    Example: Unit 1
    signal stringrequired

    Name of the Signal

    Example: Signal 1
    rename string

    Name to give the returned signal. Defaults to the signal ID.

    Possible values: <= 127 characters

  • ]

  • timeWindow

    object

    required

    start stringrequired

    Date in ISO format

    Example: 2021-09-01T00:00:00.000Z
    end string

    Date in ISO format

    Example: 2021-09-01T00:00:00.000Z
    format string

    Output file format

    Possible values: [parquet, json, csv]

    Default value: parquet
    notificationUrl uri

    URL to notify when the output file is ready, see Async historical data request notification for more info

Responses

Success

Schema

    oneOf

    Data request is still running

    requestId integerrequired

    ID of the Request

    Possible values: > 0

    Example: 1000
    status stringrequired

    Possible values: [Running]

    outputFile urirequired

    URL to download the data output file

    Example: https://nortech-api-query-euc1.s3.eu-central-1.amazonaws.com/User-10-1713999600/000.parquet
Loading...