Delete Asset Latest Data
Delete the latest data of the specified measurement points of specified devices.
Operation Permissions
Required Authorization |
Required Operation Permission |
Asset |
Write |
For more information about resources and required permission, see Policies, Roles and Permissions>>
Request Parameters (URI)
Name |
Location (Path/Query) |
Mandatory/Optional |
Data Type |
Description |
orgId |
Query |
Mandatory |
String |
The organization ID which the asset belongs to. How to get organization ID>> |
Request Parameters (Body)
Name |
Mandatory/Optional |
Data Type |
Description |
assetIds |
Mandatory |
String |
The asset ID. Supports deleting the latest data of multiple assets, separated by commas. How to get asset ID>> |
pointIds |
Mandatory |
String |
The measurement point ID. Supports deleting the latest data of multiple measurement points, separated by commas. How to get measurement point ID>> |
Sample
Request Sample
url: https://{apigw-address}/tsdb-service/v2.1/latest?action=delete&orgId=yourOrgId
method: POST
Content-Type: application/json
requestBody:
{
"assetIds": "yourAssetIds",
"pointIds": "yourPointIds"
}
Return Sample
{
"code": 0,
"msg": "OK",
"submsg": "",
"data": null
}
SDK Samples
You can access the Java SDK Samples for TSDB data service on Github.