curl --location '/resourcetype' \
--header 'Accept: application/json' \
--header 'token: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "electricity energy",
"classifier": "electricity.consumption",
"storage": [
{
"type": "timeseries",
"sampling": "regular",
"start": "2014-01-06T00:00:00+00:00",
"fields": [
{
"fieldName": "GEN",
"unit": "kWh",
"datatype": "fixedpoint(2)",
"negative": false
},
{
"fieldName": "GEN",
"unit": "kWh",
"datatype": "fixedpoint(2)",
"negative": false
}
]
},
{
"type": "timeseries",
"sampling": "regular",
"start": "2014-01-06T00:00:00+00:00",
"fields": [
{
"fieldName": "GEN",
"unit": "kWh",
"datatype": "fixedpoint(2)",
"negative": false
},
{
"fieldName": "GEN",
"unit": "kWh",
"datatype": "fixedpoint(2)",
"negative": false
}
]
}
],
"description": "The storage mechanism for saving electricity energy.",
"dataSourceType": "DATA_SOURCE_IDENTIFIER",
"dataSourceResourceTypeInfo": "ELEC"
}'