This endpoint deletes Device Values for a specific time range.
Request
To delete Device Values for a specific time range please make a POST request to the following URL:
HTTP Method | URL |
---|---|
POST |
|
Path Parameters
Parameter | Type | Description |
---|---|---|
device_key | String | The id or label of the Device, label should use the prefix |
Query Parameters
Parameter | Type | Use | Description |
---|---|---|---|
token | String | Authentication | Authentication Token can optionally be sent as a query parameter. |
startDate | Long | Required Parameter | Start date in milliseconds |
endDate | Long | Required Parameter | End date in milliseconds |
Header
Parameter | Required? | Description |
---|---|---|
X-Auth-Token | Yes | Authentication Token of account |
$ curl -X POST 'https://industrial.api.ubidots.com/api/v2.0/devices/<device_key>/_/values/delete/?startDate=1632614400000&endDate=1632614500000' \
-H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73'
{
"task": {
"id": "5df7b7501a9ca5714e7a1301"
}
}
{
"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.