DELETE /devicelocations/{txid}?accountname={accountname}
Cancel a queued POST /devicelocations
request. Callback messages will not be sent for any devices that have not been located when you send the DELETE request.
See also:
Get the location of IoT or consumer devices
You can only cancel queued requests. Once ThingSpace has started processing the original request, you cannot cancel the request. Some device location callbacks may be sent for devices that were processed before the DELETE request was received.
DELETE https://thingspace.verizon.com/api/loc/v1/devicelocations/{txid}?accountname={accountname}
You must include the transaction ID and account name in the path.
Parameter Name | Data Type | Description |
---|---|---|
txid required |
string | The transaction ID of the request that you want to cancel, from the POST /devicelocations synchronus response. |
accountname required |
string | The name of the account that sent the original request. |
The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by POST /api/m2m/v1/session/login. |
None.
Status 200
A success response contains the transaction ID of the request that was canceled.
Parameter Name | Data Type | Description |
---|---|---|
txid | string | The transaction ID of the report. |
{
"txid": "2c90bd28-ece4-42ef-9f02-7e3bd4fbff33"
}
Status 400
All error messages are returned in this format:
{
"errorCode": "The type of error, such as INVALID_REQUEST.",
"errorMessage": "Additional error information."
}
Error codes and messages are listed on the Error Codes page, along with explanations and suggestions for corrective actions.