Update wireless sim

POST /wireless/Sims/{Sid}

Path parameters

  • Sid string Required
application/x-www-form-urlencoded

Body

  • UniqueName string
  • CallbackMethod string
  • CallbackUrl string(uri)
  • FriendlyName string
  • RatePlan string
  • Status string
  • CommandsCallbackMethod string(http-method)

    Values are GET or POST.

  • CommandsCallbackUrl string(uri)
  • SmsFallbackMethod string(http-method)

    Values are GET or POST.

  • SmsFallbackUrl string(uri)
  • SmsMethod string(http-method)

    Values are GET or POST.

  • SmsUrl string(uri)
  • VoiceFallbackMethod string(http-method)

    Values are GET or POST.

  • VoiceFallbackUrl string(uri)
  • VoiceMethod string(http-method)

    Values are GET or POST.

  • VoiceUrl string(uri)

Responses

  • 200 application/json

    OK

    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: ^DE[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}$.

    • rate_plan_sid string | null

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

    • friendly_name string | null
    • iccid string | null
    • e_id string | null
    • status string | null
    • commands_callback_url string(uri) | null
    • commands_callback_method string | null
    • sms_fallback_method string(http-method) | null

      Values are GET or POST.

    • sms_fallback_url string(uri) | null
    • sms_method string(http-method) | null

      Values are GET or POST.

    • sms_url string(uri) | null
    • voice_fallback_method string(http-method) | null

      Values are GET or POST.

    • voice_fallback_url string(uri) | null
    • voice_method string(http-method) | null

      Values are GET or POST.

    • voice_url string(uri) | null
    • date_created string(date-time) | null
    • date_updated string(date-time) | null
    • url string(uri) | null
POST /wireless/Sims/{Sid}
curl \
 --request POST 'https://preview.twilio.com/wireless/Sims/{Sid}' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'SmsUrl=http%3A%2F%2Fwww.example.com&Status=status&RatePlan=WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&VoiceUrl=http%3A%2F%2Fwww.example.com&SmsMethod=http_method&UniqueName=unique_name&CallbackUrl=http%3A%2F%2Fwww.example.com&VoiceMethod=http_method&FriendlyName=friendly_name&CallbackMethod=callback_method&SmsFallbackUrl=http%3A%2F%2Fwww.example.com&VoiceFallbackUrl=http%3A%2F%2Fwww.example.com&SmsFallbackMethod=http_method&CommandsCallbackUrl=http%3A%2F%2Fwww.example.com&VoiceFallbackMethod=http_method&CommandsCallbackMethod=http_method'
Request example
{"SmsUrl"=>"http://www.example.com", "Status"=>"status", "RatePlan"=>"WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "VoiceUrl"=>"http://www.example.com", "SmsMethod"=>"http_method", "UniqueName"=>"unique_name", "CallbackUrl"=>"http://www.example.com", "VoiceMethod"=>"http_method", "FriendlyName"=>"friendly_name", "CallbackMethod"=>"callback_method", "SmsFallbackUrl"=>"http://www.example.com", "VoiceFallbackUrl"=>"http://www.example.com", "SmsFallbackMethod"=>"http_method", "CommandsCallbackUrl"=>"http://www.example.com", "VoiceFallbackMethod"=>"http_method", "CommandsCallbackMethod"=>"http_method"}
Response examples (200)
{
  "sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "url": "https://preview.twilio.com/wireless/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "e_id": "e_id",
  "iccid": "iccid",
  "links": {
    "usage": "https://preview.twilio.com/wireless/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Usage",
    "rate_plan": "https://preview.twilio.com/wireless/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
  },
  "status": "status",
  "sms_url": "http://www.example.com",
  "voice_url": "http://www.example.com",
  "sms_method": "http_method",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "unique_name": "unique_name",
  "date_created": "2015-07-30T20:00:00Z",
  "date_updated": "2015-07-30T20:00:00Z",
  "voice_method": "http_method",
  "friendly_name": "friendly_name",
  "rate_plan_sid": "WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "sms_fallback_url": "http://www.example.com",
  "voice_fallback_url": "http://www.example.com",
  "sms_fallback_method": "http_method",
  "commands_callback_url": "http://www.example.com",
  "voice_fallback_method": "http_method",
  "commands_callback_method": "http_method"
}