const timeseries = [
{ name: 'Pressure sensor', assetId: 123 },
{ name: 'Temprature sensor', description: 'Pump abc', unit: 'C' },
];
const createdTimeseries = await client.timeseries.create(timeseries);{
"items": [
{
"id": 4503599627370496,
"isString": true,
"type": "<string>",
"isStep": true,
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"externalId": "<string>",
"instanceId": {
"space": "<string>",
"externalId": "<string>"
},
"name": "<string>",
"metadata": {},
"unit": "<string>",
"unitExternalId": "<string>",
"assetId": 4503599627370496,
"description": "<string>",
"securityCategories": [
123
],
"dataSetId": 4503599627370496
}
]
}Required capabilities:
timeSeriesAcl:WRITE
Creates one or more time series.
const timeseries = [
{ name: 'Pressure sensor', assetId: 123 },
{ name: 'Temprature sensor', description: 'Pump abc', unit: 'C' },
];
const createdTimeseries = await client.timeseries.create(timeseries);{
"items": [
{
"id": 4503599627370496,
"isString": true,
"type": "<string>",
"isStep": true,
"createdTime": 1730204346000,
"lastUpdatedTime": 1730204346000,
"externalId": "<string>",
"instanceId": {
"space": "<string>",
"externalId": "<string>"
},
"name": "<string>",
"metadata": {},
"unit": "<string>",
"unitExternalId": "<string>",
"assetId": 4503599627370496,
"description": "<string>",
"securityCategories": [
123
],
"dataSetId": 4503599627370496
}
]
}Access token issued by the CDF project's configured identity provider. Access token must be an OpenID Connect token, and the project must be configured to accept OpenID Connect tokens. Use a header key of 'Authorization' with a value of 'Bearer $accesstoken'. The token can be obtained through any flow supported by the identity provider.
1 - 1000 elementsShow child attributes
Response with the created time series.
List of responses. The order matches the requests order.
Show child attributes
Was this page helpful?