Standard APIsReady SIMAPI EndpointsUpdate TriggersUpdate All Available Triggers

API Reference

Update Promotional Triggers

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.

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 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

HTTP Request

PUT https://thingspace.verizon.com/api/m2m/v2/triggers

Request Parameters

Parameter NameData TypeDescription
triggerIdstringThe system assigned ID of the Trigger.
triggerNameobjectThe system assigned name of the trigger. When the trigger is associated with MDNless, the name will show PromoAlerts.
accountNamestringThe name of the account. An account name is usually numeric and must include any leading zeros.
organizationNamestringAn optional group name added when the trigger is created.
triggerCategorystringThe category of the trigger. for MDNless this category will always be PromoAlerts
promoAlertsarrayAn array of additional information for the trigger.
promoAlerts.filterCriteriaobjectThe filter information used to identify the trigger.
promoalerts.conditionstringThe conditons, or thresholds, for the trigger to respond.
promoAlerts.condition.DataPercentage50booleanWhether or not the usage has exceeded 50% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.DataPercentage75booleanWhether or not the usage has exceeded 75% of the account's total usage allowed.
  • true
  • false
promoAlerts.DataPercentage90booleanWhether or not the usage has exceeded 90% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.DataPercentage100booleanWhether or not the usage has exceeded 100% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.SmsPercentage50booleanWhether or not the number of SMS messages has exceeded 50% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.SmsPercentage75booleanWhether or not the number of SMS messages has exceeded 75% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.SmsPercentage90booleanWhether or not the number of SMS messages has exceeded 90% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.SmsPercentage100booleanWhether or not the number of SMS messages has exceeded 100% of the account's total usage allowed.
  • true
  • false
promoAlerts.condition.NoOfDaysB4PromoExpintegerThe number of days until the promotional billing rate for MDNless ends.
promoAlerts.EnablePromobooleanWhether or not the promotional billing rate is enabled.
  • true - rate enabled
  • false - rate is not enabled

Request Body

Example Request Body:

{
    "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
    }
}

Success Responses

Status 200 Example Success Response:

{
    "status": "Success"
}

Failure Responses

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.

On this page