Create wireless rate plan

POST /wireless/RatePlans
application/x-www-form-urlencoded

Body

  • UniqueName string
  • FriendlyName string
  • DataEnabled boolean
  • DataLimit integer
  • DataMetering string
  • MessagingEnabled boolean
  • VoiceEnabled boolean
  • CommandsEnabled boolean
  • NationalRoamingEnabled boolean
  • InternationalRoaming array[string]

Responses

  • 201 application/json

    Created

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^WP[0-9a-fA-F]{32}$.

    • unique_name string | null
    • account_sid string | null

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • friendly_name string | null
    • data_enabled boolean | null
    • data_metering string | null
    • data_limit integer

      Default value is 0.

    • messaging_enabled boolean | null
    • voice_enabled boolean | null
    • national_roaming_enabled boolean | null
    • international_roaming array[string] | null
    • date_created string(date-time) | null
    • date_updated string(date-time) | null
    • url string(uri) | null
POST /wireless/RatePlans
curl \
 --request POST 'https://preview.twilio.com/wireless/RatePlans' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Status=status&DataLimit=1000&UniqueName=unique_name&DataEnabled=true&DataMetering=pooled&FriendlyName=friendly_name&VoiceEnabled=true&MessagingEnabled=true&InternationalRoaming=data&InternationalRoaming=voice&InternationalRoaming=messaging&NationalRoamingEnabled=true'
Request example
{"Status"=>"status", "DataLimit"=>1000, "UniqueName"=>"unique_name", "DataEnabled"=>true, "DataMetering"=>"pooled", "FriendlyName"=>"friendly_name", "VoiceEnabled"=>true, "MessagingEnabled"=>true, "InternationalRoaming"=>["data", "voice", "messaging"], "NationalRoamingEnabled"=>true}
Response examples (201)
{
  "sid": "WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://preview.twilio.com/wireless/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "data_limit": 1000,
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "unique_name": "unique_name",
  "data_enabled": true,
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "data_metering": "pooled",
  "friendly_name": "friendly_name",
  "voice_enabled": true,
  "messaging_enabled": true,
  "international_roaming": [
    "data",
    "messaging",
    "voice"
  ],
  "national_roaming_enabled": true
}