/2010-04-01/Accounts/{AccountSid}/Usage/Triggers.jsonCreate a usage trigger
Creates a usage trigger for an account to monitor a usage category and value. Supply CallbackUrl, TriggerValue, and UsageCategory; choose TriggerBy and Recurring to configure what the trigger monitors and how often it can fire. The callback method defaults to POST when omitted.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional usage trigger configuration. CallbackUrl, TriggerValue, and UsageCategory are required.
CallbackUrl, TriggerValue, and UsageCategory are required. The AccountSid path parameter must be a 34-character SID beginning with AC followed by 32 hexadecimal characters. CallbackUrl must be a URI, CallbackMethod must be GET or POST, Recurring must be daily, monthly, yearly, or alltime, and TriggerBy must be count, usage, or price; FriendlyName can be up to 64 characters. Use a supported usage category for UsageCategory; encode a leading plus sign in an offset TriggerValue as %2B.