This endpoint deletes Values from a specified Variable within a specified timeframe.
Request
To delete Values from a specified Variable please make a POST request to the following URL:
| HTTP Method | URL |
|---|---|
| POST | https://industrial.api.ubidots.com/api/v2.0/variables/<variable_id>/_/values/delete/ |
Query Parameters
| Parameter | Type | Use | Description |
|---|---|---|---|
| token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
| startDate | Long | Required Parameter | In milliseconds |
| endDate | Long | Required Parameter | In milliseconds |
Header
| Parameter | Type | Description |
|---|---|---|
| X-Auth-Token | String | Authentication Token of account |
curl -X POST 'https://industrial.api.ubidots.com/api/v2.0/variables/<variable_id>/_/values/delete/?startDate=1641067171000&endDate=1643745571000/' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'{
"task": {
"id": "5ebda96e73efc323d89a628c"
}
}{
"code": 400001,
"message": "Validation Error.",
"detail": {
....
}
}{
"code": 401001,
"message": "Authentication credentials were not provided.",
"detail": "Authentication credentials were not provided."
}Response
Returns a Task Id of the asynchronous process.
