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
- application/json
Body
Body
- MOD1
- MOD2
Array [
]
Array [
]
signals
object
required
Array of Signal ID's or Search JSON's
oneOf
Array of signal ID's
integer
Possible values: > 0
Signal search JSON
Name of the Workspace
Workspace 1Name of the Asset
Asset 1Name of the Division
Division 1Name of the Unit
Unit 1Name of the Signal
Signal 1Name to give the returned signal. Defaults to the signal ID.
Possible values: <= 127 characters
timeWindow
object
required
Date in ISO format
2021-09-01T00:00:00.000ZDate in ISO format
2021-09-01T00:00:00.000ZOutput file format
Possible values: [parquet, json, csv]
parquetURL to notify when the output file is ready, see Async historical data request notification for more info
Responses
- 200
- 400
- 401
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
oneOf
Data request is still running
ID of the Request
Possible values: > 0
1000Possible values: [Running]
URL to download the data output file
https://nortech-api-query-euc1.s3.eu-central-1.amazonaws.com/User-10-1713999600/000.parquetData request is finished
ID of the Request
Possible values: > 0
1000Possible values: [Finished]
URL to download the data output file
https://nortech-api-query-euc1.s3.eu-central-1.amazonaws.com/User-10-1713999600/000.parquet{}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: [Validation Error]
errors
object[]
required
Possible values: [body, query, path, headers]
{
"status": "Validation Error",
"errors": [
{
"error": "string",
"location": "body"
}
]
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [Unauthorized]
{
"status": "Unauthorized"
}
Signals not found
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
Array [
]
Array [
]
Possible values: [Signals not found]
signals
object
required
Array of Signal ID's or Search JSON's
oneOf
Array of signal ID's
integer
Possible values: > 0
Signal search JSON
Name of the Workspace
Workspace 1Name of the Asset
Asset 1Name of the Division
Division 1Name of the Unit
Unit 1Name of the Signal
Signal 1Name to give the returned signal. Defaults to the signal ID.
Possible values: <= 127 characters
{
"status": "Signals not found",
"signals": [
10000,
10001,
10002
]
}
Data Request failed
- application/json
- Schema
- Example (from schema)
Schema
ID of the Request
Possible values: > 0
1000Possible values: [Failed]
Possible values: [Data request failed, Request timed out]
{
"requestId": 1000,
"status": "Failed",
"error": "Data request failed"
}