Create Sync Data Request
POST/api/v1/historical-data/sync
This endpoint creates a data request and waits for the data to be processed before responding.
The response will contain a status, indicating if the request succeeded or if it failed,
and a outputFile or error field indicating the URL of the output file or the error message, respectively.
Request
- application/json
Body
Body
- MOD1
- MOD2
Array [
]
Array [
]
signals
object
required
oneOf
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
ID of the Signal
integer
Possible values: > 0
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]
parquetResponses
- 200
- 400
- 401
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
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{
"requestId": 1000,
"status": "Finished",
"outputFile": "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"
}
404
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- MOD1
- MOD2
Array [
]
Array [
]
oneOf
Signals not found
Possible values: [Signals not found]
signals
object
required
oneOf
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
ID of the Signal
integer
Possible values: > 0
Signal Data not found
Possible values: [Signal Data not found]
{}
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"
}