Use this endpoint to stop the ThingSpace Quality of Service API subscription
DELETE https://thingspace.verizon.com/api/m2m/v1/device/actions/enhanceQoS
Parameter Name | Data Type | Description |
---|---|---|
accountName required |
string | The name of a billing account. This value is numeric and must include any leading zeroes. |
qosSubscriptionId required |
string | The id of the QoS subscription that should be stopped. |
The request header must contain a current ThingSpace authorization bearer token and a valid VZ-M2M session token, and must set the content-type to JSON.
Parameter Name | Data Type | Description |
---|---|---|
Authorization required |
string | HTTP Authorization bearer token. |
VZ-M2M-Token required |
string | A valid session token returned by POST /session/login. |
Content-Type required |
string | Must be application/json . |
None.
{
"accountName":"0000123456-00001",
"qosSubscriptionId":"QoS subscription ID"
}
Status 201
{
"requestId": "be36accb-0a9a-4367-93ab-0af6c4ed256a"
}
{
"requestId": "be36accb-0a9a-4367-93ab-0af6c4ed256a",
"deviceResponse": {
"qoS": [
{
"accountName": "0000123456-00001",
"qosSubscriptionId": "QoS subscription ID",
"reportedTime": "2023-02-17T19:02:54.127",
"qosEvent": "QoSChangeTerminated",
"status": "SUCCESS"
}
]
},
"callbackCount": 1,
"maxCallbackThreshold": 4
}
{
"requestId": "be36accb-0a9a-4367-93ab-0af6c4ed256a",
"deviceResponse": {
"qoS": [
{
"accountName": "0000123456-00001",
"reportedTime": "2023-02-17T19:02:54.127",
"qosEvent": "QoSChangeFailed",
"status": "FAILED",
"reason": "device not found"
}
]
},
"callbackCount": 1,
"maxCallbackThreshold": 4
}
Parameter Name | Data Type | Description |
---|---|---|
requestId | string | This is the same requestId in the response to the original request |
deviceResponse | object | The device response object |
qoS | array | The array containing the QoS status for this subscription and account |
accountName | string | The name of a billing account. This value is numeric and must include any leading zeroes. |
qosSubscriptionId | string | The subscription id of the QoS request. |
reportedTime | string ($datetime) | Identifies the absolute time at which the reachability report is received from the Service Capability Exposure Function (SCEF). The format is aligned with RFC3339. |
qosEvent | string | This will show either:
|
status | string | This will show either:
|
reason | string | This line will have a reason or description of why the request failed. If the status is "SUCCESS", this line will not be output. |
callbackCount | integer | The number of responses in the callback request |
maxCallbackThreshold | integer | The maximum number of callback responses allowed for this request |
Status 400
All error messages are returned in this format:
{
"errorCode": "error code string",
"errorMessage": "error message string"
}