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 Format¶
POST https://{apigw-address}/tsdb-service/v2.1/latest?action=delete
Request Parameters (Header)¶
| Name | Mandatory/Optional | Data Type | Description | 
|---|---|---|---|
| Content-Type | Mandatory | String | Content or file type. The default value is application/json. | 
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>> | 
Error Code¶
For the description of error codes, see Common Error Codes.
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
}