PUT /v2/triggers
Updating a trigger for MDNless is similar to retrieving any trigger in Connectivity Management. The only difference is a few new values added in the response for MDNless. This page will cover the new values and provide examples of what responses look like with the new values.
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 . |
Parameter Name | Data Type | Description |
---|---|---|
triggerId |
string | The system assigned ID of the Trigger. |
triggerName |
object | The system assigned name of the trigger. When the trigger is associated with MDNless, the name will show "PromoAlerts". |
accountName |
string | The name of the account. An account name is usually numeric and must include any leading zeros. |
organizationName |
string | An optional group name added when the trigger is created. |
triggerCategory |
string | The category of the trigger. for MDNless this category will always be "PromoAlerts" |
promoAlerts |
array | An array of additional information for the trigger. |
promoAlerts.filterCriteria |
object | The filter information used to identify the trigger. |
promoalerts.condition |
string | The conditons, or thresholds, for the trigger to respond. |
promoAlerts.condition.DataPercentage50 |
boolean | Whether or not the usage has exceeded 50% of the account's total usage allowed.
|
promoAlerts.condition.DataPercentage75 | boolean | Whether or not the usage has exceeded 75% of the account's total usage allowed.
|
promoAlerts.DataPercentage90 | boolean | Whether or not the usage has exceeded 90% of the account's total usage allowed.
|
promoAlerts.condition.DataPercentage100 | boolean | Whether or not the usage has exceeded 100% of the account's total usage allowed.
|
promoAlerts.condition.SmsPercentage50 | boolean | Whether or not the number of SMS messages has exceeded 50% of the account's total usage allowed.
|
promoAlerts.condition.SmsPercentage75 | boolean | Whether or not the number of SMS messages has exceeded 75% of the account's total usage allowed.
|
promoAlerts.condition.SmsPercentage90 | boolean | Whether or not the number of SMS messages has exceeded 90% of the account's total usage allowed.
|
promoAlerts.condition.SmsPercentage100 | boolean | Whether or not the number of SMS messages has exceeded 100% of the account's total usage allowed.
|
promoAlerts.condition.NoOfDaysB4PromoExp | integer | The number of days until the promotional billing rate for MDNless ends. |
promoAlerts.EnablePromo | boolean | Whether or not the promotional billing rate is enabled.
|
{
"triggerId": "0C82E389-1305-40C7-8DD3-E6FDDC984F7D",
"triggerName": "PromoAlerts_0000123456-00001_12345",
"accountName": "0000123456-00001",
"organizationName": "Mdnless_org_name",
"triggerCategory": "PromoAlerts",
"promoAlerts": {
"filterCriteria": {
},
"condition": {
"dataPercentage50": false,
"dataPercentage75": false,
"dataPercentage90": false,
"dataPercentage100": true,
"smsPercentage50": false,
"smsPercentage75": false,
"smsPercentage90": false,
"smsPercentage100": true,
"noOfDaysB4PromoExp": 0
},
"enablePromo": true
}
}
PUT https://thingspace.verizon.com/api/m2m/v2/triggers
Status 200
{
"status": "Success"
}
All failure responses are 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.