Usage Trigger Management

Change the settings of an existing usage trigger

POST
/loc/v1/usage/triggers/{triggerId}

Update an existing usage trigger

Authorization

thingspace_oauth VZ-M2M-Token
AuthorizationBearer <token>

This is the ThingSpace token, from Credentials and Tokens is used

In: header

VZ-M2M-Token<token>

M2M Session Token (How to generate an M2M session token?)

In: header

Path Parameters

triggerId*string

Usage trigger ID

Request Body

application/json

New trigger values

New trigger values

triggerName?string

Usage trigger name

accountName*string

Account name

thresholdValue?string

The percent of subscribed usage required to activate the trigger, such as 90 or 100.

smsPhoneNumbers?string

Comma-separated list of phone numbers to send SMS alerts to. Digits only; no dashes or parentheses, etc.

emailAddresses?string

Comma-separated list of email addresses to send alerts to.

Response Body

application/json

application/json

curl -X POST "https://example.com/loc/v1/usage/triggers/595f5c44-c31c-4552-8670-020a1545a84d" \  -H "Content-Type: application/json" \  -d '{    "accountName": "1000012345-00001",    "thresholdValue": "95"  }'
{  "triggerId": "595f5c44-c31c-4552-8670-020a1545a84d",  "triggerName": "90 percent",  "accountName": "1000012345-00001",  "serviceName": "Location",  "thresholdValue": "90",  "allowExcess": true,  "sendSmsNotification": true,  "smsPhoneNumbers": "5558794321",  "sendEmailNotification": false,  "emailAddresses": "",  "createDate": "2018-08-11",  "updateDate": "2018-08-12"}