Twilio: Trigger schemas
1 Twilio schema with complete fields and constraints.
โ Trigger operations ยท All schemas
Create a new Usage Trigger โ response body
| Field | Type | Presence | Description and constraints |
|---|---|---|---|
$ | object | Root | |
account_sid | JSON | Optional | |
account_sid (anyOf 1) | string | Alternative | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that the trigger monitors. Maximum length: 34 Minimum length: 34 Pattern: ^AC[0-9a-fA-F]{32}$ |
account_sid (anyOf 2) | null | Alternative | |
api_version | JSON | Optional | |
api_version (anyOf 1) | string | Alternative | The API version used to create the resource. |
api_version (anyOf 2) | null | Alternative | |
callback_method | JSON | Optional | |
callback_method (anyOf 1) | string | Alternative | The HTTP method we use to call `callback_url`. Can be: `GET` or `POST`. Known values: GET, POST Format: http-method |
callback_method (anyOf 2) | null | Alternative | |
callback_url | JSON | Optional | |
callback_url (anyOf 1) | string | Alternative | The URL we call using the `callback_method` when the trigger fires. Format: uri |
callback_url (anyOf 2) | null | Alternative | |
current_value | JSON | Optional | |
current_value (anyOf 1) | string | Alternative | The current value of the field the trigger is watching. |
current_value (anyOf 2) | null | Alternative | |
date_created | JSON | Optional | |
date_created (anyOf 1) | string | Alternative | The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Format: date-time-rfc-2822 |
date_created (anyOf 2) | null | Alternative | |
date_fired | JSON | Optional | |
date_fired (anyOf 1) | string | Alternative | The date and time in GMT that the trigger was last fired specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Format: date-time-rfc-2822 |
date_fired (anyOf 2) | null | Alternative | |
date_updated | JSON | Optional | |
date_updated (anyOf 1) | string | Alternative | The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. Format: date-time-rfc-2822 |
date_updated (anyOf 2) | null | Alternative | |
friendly_name | JSON | Optional | |
friendly_name (anyOf 1) | string | Alternative | The string that you assigned to describe the trigger. |
friendly_name (anyOf 2) | null | Alternative | |
recurring | string | Optional | The frequency of a recurring UsageTrigger. Can be: `daily`, `monthly`, or `yearly` for recurring triggers or empty for non-recurring triggers. A trigger will only fire once during each period. Recurring times are in GMT. Known values: daily, monthly, yearly, alltime |
sid | JSON | Optional | |
sid (anyOf 1) | string | Alternative | The unique string that that we created to identify the UsageTrigger resource. Maximum length: 34 Minimum length: 34 Pattern: ^UT[0-9a-fA-F]{32}$ |
sid (anyOf 2) | null | Alternative | |
trigger_by | string | Optional | The field in the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource that fires the trigger. Can be: `count`, `usage`, or `price`, as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price). Known values: count, usage, price |
trigger_value | JSON | Optional | |
trigger_value (anyOf 1) | string | Alternative | The value at which the trigger will fire. Must be a positive, numeric value. |
trigger_value (anyOf 2) | null | Alternative | |
uri | JSON | Optional | |
uri (anyOf 1) | string | Alternative | The URI of the resource, relative to `https://api.twilio.com`. |
uri (anyOf 2) | null | Alternative | |
usage_category | JSON | Optional | |
usage_category (anyOf 1) | string | Alternative | The usage category the trigger watches. Must be one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories). |
usage_category (anyOf 2) | null | Alternative | |
usage_record_uri | JSON | Optional | |
usage_record_uri (anyOf 1) | string | Alternative | The URI of the [UsageRecord](https://www.twilio.com/docs/usage/api/usage-record) resource this trigger watches, relative to `https://api.twilio.com`. |
usage_record_uri (anyOf 2) | null | Alternative |