Specialized APIsAutomotive OEMThingSpace Quality of ServiceAPI Reference

Stop a QoS Subscription

Stop the ThingSpace Quality of Service API Subscription

DELETE /api/m2m/v1/device/actions/enhanceQoS

Use this endpoint to stop the ThingSpace Quality of Service API subscription.

Header Parameters

The request header must set the content-type to JSON, contain a current ThingSpace authorization token and a current VZ-M2M session token. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization (required)stringHTTP Authorization request header containing a valid Bearer token: Authorization: Bearer {token}
VZ-M2M-Token (required)stringA valid session token returned by a Connectivity Management POST /session/login request.
Content-Type (required)stringMust be application/json.

HTTP Request

DELETE https://thingspace.verizon.com/api/m2m/v1/device/actions/enhanceQoS

Request Parameters

Parameter NameData TypeDescription
accountName (required)stringThe name of a billing account. This value is numeric and must include any leading zeroes.
qosSubscriptionId (required)stringThe id of the QoS subscription that should be stopped.

Request Body

Example Request

{
   "accountName":"0000123456-00001",
   "qosSubscriptionId":"QoS subscription ID value"
}

Success Responses

Status 201

{
"requestId": "be36accb-eeee-ffff-gggg-0af6c4ed256a"
}

Callback example

{
  "requestId": "be36accb-eeee-ffff-gggg-0af6c4ed256a",
  "deviceResponse": {
    "qoS": [
      {
        "accountName": "0000123456-00001",
        "qosSubscriptionId": "QoS subscription ID value",
        "reportedTime": "2023-02-17T19:02:54.127Z",
        "qosEvent": "QoSChangeTerminated",
        "status": "SUCCESS"
      }
    ]
  },
  "callbackCount": 1,
  "maxCallbackThreshold": 4
}

Or, if the request fails:

{
  "requestId": "be36accb-eeee-ffff-gggg-0af6c4ed256a",
  "deviceResponse": {
    "qoS": [
      {
        "accountName": "0000123456-00001",
        "reportedTime": "2023-02-17T19:02:54.127Z",
        "qosEvent": "QoSChangeFailed",
        "status": "FAILED",
        "reason": "device not found"
      }
    ]
  },
  "callbackCount": 1,
  "maxCallbackThreshold": 4
}

Callback Parameters

Parameter NameData TypeDescription
requestIdstringThis is the same requestId in the response to the original request.
deviceResponseobjectThe device response object.
qoSarrayThe array containing the QoS status for this subscription and account.
accountNamestringThe name of a billing account. This value is numeric and must include any leading zeroes.
qosSubscriptionIdstringThe subscription id of the QoS request.
reportedTimestring ($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.
qosEventstringThis will show either: QoSChangeTerminated (QoS elevation has been stopped) or QoSChangeFailed.
statusstringThis will show either: SUCCESS or FAILED.
reasonstringThis line will have a reason or description of why the request failed. If the status is "SUCCESS", this line will not be output.
callbackCountintegerThe number of responses in the callback request.
maxCallbackThresholdintegerThe maximum number of callback responses allowed for this request.

Failure Responses

All error messages are returned in this format:

    {
      "errorCode": "error code string",
      "errorMessage": "error message string"
    }

On this page