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
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 1
Name
of the Asset
Asset 1
Name
of the Division
Division 1
Name
of the Unit
Unit 1
Name
of the Signal
Signal 1
Name 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.000Z
Date in ISO format
2021-09-01T00:00:00.000Z
Output file format
Possible values: [parquet
, json
, csv
]
parquet
Responses
- 200
- 400
- 401
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
ID
of the Request
Possible values: > 0
1000
Possible 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
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 1
Name
of the Asset
Asset 1
Name
of the Division
Division 1
Name
of the Unit
Unit 1
Name
of the Signal
Signal 1
Name to give the returned signal. Defaults to the signal ID.
Possible values: <= 127 characters
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
1000
Possible values: [Failed
]
Possible values: [Data request failed
, Request timed out
]
{
"requestId": 1000,
"status": "Failed",
"error": "Data request failed"
}