Delete Variable Values

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 MethodURL
POSThttps://industrial.api.ubidots.com/api/v2.0/variables/<variable_id>/_/values/delete/

Query Parameters

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.
startDateLongRequired ParameterIn milliseconds
endDateLongRequired ParameterIn milliseconds

Header

ParameterTypeDescription
X-Auth-TokenStringAuthentication 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.