Premium APIsThingSpace IntelligenceAnomaly DetectionAPI Reference

Delete a Trigger

DELETE /v1/triggers/{triggerId}

Delete a specified trigger.

HTTP Request

DELETE https://thingspace.verizon.com/api/m2m/v1/triggers/{triggerId}

Resource and Query Parameters

You must specify the trigger that you want to delete in the resource path.

Parameter NameData TypeDescription
triggerId
required
stringThe unique ID of the trigger that you want to delete.

Header Parameters

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. For more details on how to get these tokens, visit Getting Started.

Parameter NameData TypeDescription
Authorization
required
stringHTTP Authorization bearer token:
Authorization: Bearer {token}
VZ-M2M-Token
required
stringA valid session token:
VZ-M2M-Token: {M2Mtoken}
Content-Type
required
stringMust be application/json:
Content-Type: application/json

Request Body

None.

Success Responses

Status 200

The response contains the ID of the trigger that was deleted.

Parameter NameData TypeDescription
triggerIdstringThe ID of the trigger that was deleted.

Example Success Response

{ 
    "triggerId": "595f5c44-c31c-4552-8670-020a1545a84d", 
}

Failure Responses

Status 400

All error messages are returned in this format:

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

Error codes and messages are listed on the Error Messages page, along with explanations and suggestions for corrective actions.

On this page