Create Time Series Data or Derived Data for a Thing
Create time series data or derived data for a thing
With this service, you can create data for the property sets of a thing that belongs to a specific thing type. This service supports data creation for the property sets of data categories TimeSeriesData and DerivedData.
Using this service, you can send the request payload in JSON format or as a binary file in zip or gzip format. The complete request payload must be compressed in a single binary file and you cannot split the request payload in multiple files when uisng zip file format.
Request
HTTP Method: PUT
Permissions: <coldstore>.c
Request Header Parameters
| Header | Required | Description |
|---|---|---|
| content-Encoding | No |
application/zip or application/gzip |
Request Parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| thingID | Yes | String | Internal identifier for a thing. |
| thingTypeName | Yes | String | Name of a thing type. |
| propertySetID | Yes | String | Unique identifier of the property type (that belongs to the property set type) defined in a thing type |
Request Example
/Things('<thing ID>')/core.automobiles:ABCXSeries/wheel_fl
Response
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Data of category TimeSeriesData or DerivedData for the specified thing created successfully |
Payload
Format: JSON
Only media type JSON is supported. In addition, you can encode the request payload in JSON format to zip or gzip file format using the request header parameter content-Encoding. The JSON for this method has the structure as specified in the following example.
{
"value": [{
"_time": "2015-08-01T09:00:00Z",
"Pressure": "36",
"Temperature": "100"
}, {
"_time": "2015-08-02T06:00:03Z",
"Pressure": "34",
"Temperature": "120"
}]
}