Updates the given properties of a Sim resource on your Account.
A resource representing a Programmable Wireless SIM
Updates the given properties of a Sim resource on your Account.
Body
-
An application-defined string that uniquely identifies the resource. It can be used in place of the
sid
in the URL path to address the resource. -
The HTTP method we should use to call
callback_url
. Can be:POST
orGET
. The default isPOST
.Values are
GET
orPOST
. -
The URL we should call using the
callback_url
when the SIM has finished updating. When the SIM transitions fromnew
toready
or from any status todeactivated
, we call this URL when the status changes to an intermediate status (ready
ordeactivated
) and again when the status changes to its final status (active
orcanceled
). -
A descriptive string that you create to describe the Sim resource. It does not need to be unique.
-
The SID or unique name of the RatePlan resource to which the Sim resource should be assigned.
-
The status of the Sim resource. Can be:
new
,ready
,active
,deactivated
,canceled
,deleted
,scheduled
, orupdating
. See Status Values for the description of each status.Values are
new
,ready
,active
,suspended
,deactivated
,canceled
,scheduled
, orupdating
. -
The HTTP method we should use to call
commands_callback_url
. Can be:POST
orGET
. The default isPOST
.Values are
GET
orPOST
. -
The URL we should call using the
commands_callback_method
when the SIM sends a Command. Your server should respond with an HTTP status code in the 200 range; any response body is ignored. -
The HTTP method we should use to call
sms_fallback_url
. Can be:GET
orPOST
. Default isPOST
.Values are
GET
orPOST
. -
The URL we should call using the
sms_fallback_method
when an error occurs while retrieving or executing the TwiML requested fromsms_url
. -
The HTTP method we should use to call
sms_url
. Can be:GET
orPOST
. Default isPOST
.Values are
GET
orPOST
. -
The URL we should call using the
sms_method
when the SIM-connected device sends an SMS message that is not a Command. -
Deprecated.
Values are
GET
orPOST
. -
Deprecated.
-
Deprecated.
Values are
GET
orPOST
. -
Deprecated.
-
The connectivity reset status of the SIM. Can be: null or
resetting
. When a connectivity reset is initiated on a SIM, this property isresetting
. After the reset completes, it is null.Value is
resetting
. -
The SID of the Account to which the Sim resource should belong. The Account SID can only be that of the requesting Account or that of a Subaccount of the requesting Account. Only valid when the Sim resource's status is
new
. For more information, see the Move SIMs between Subaccounts documentation.
curl \
--request POST 'https://wireless.twilio.com/v1/Sims/{Sid}' \
--user "username:password" \
--header "Content-Type: application/x-www-form-urlencoded" \
--data 'SmsUrl=http%3A%2F%2Fwww.example.com&Status=new&RatePlan=WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&VoiceUrl=http%3A%2F%2Fwww.example.com&SmsMethod=POST&UniqueName=unique_name&CallbackUrl=http%3A%2F%2Fwww.example.com&VoiceMethod=POST&FriendlyName=friendly_name&CallbackMethod=callback_method&SmsFallbackUrl=http%3A%2F%2Fwww.example.com&VoiceFallbackUrl=http%3A%2F%2Fwww.example.com&SmsFallbackMethod=POST&CommandsCallbackUrl=http%3A%2F%2Fwww.example.com&VoiceFallbackMethod=POST&CommandsCallbackMethod=POST'
{"SmsUrl"=>"http://www.example.com", "Status"=>"new", "RatePlan"=>"WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "VoiceUrl"=>"http://www.example.com", "SmsMethod"=>"POST", "UniqueName"=>"unique_name", "CallbackUrl"=>"http://www.example.com", "VoiceMethod"=>"POST", "FriendlyName"=>"friendly_name", "CallbackMethod"=>"callback_method", "SmsFallbackUrl"=>"http://www.example.com", "VoiceFallbackUrl"=>"http://www.example.com", "SmsFallbackMethod"=>"POST", "CommandsCallbackUrl"=>"http://www.example.com", "VoiceFallbackMethod"=>"POST", "CommandsCallbackMethod"=>"POST"}
{"Status"=>"new", "RatePlan"=>"WPbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "AccountSid"=>"ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "UniqueName"=>"unique_name"}
{"ResetStatus"=>"resetting"}
{
"sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"e_id": "e_id",
"iccid": "iccid",
"links": {
"rate_plan": "https://wireless.twilio.com/v1/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_sessions": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions",
"usage_records": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/UsageRecords"
},
"status": "new",
"sms_url": "http://www.example.com",
"voice_url": "http://www.example.com",
"ip_address": "192.168.1.30",
"sms_method": "POST",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"unique_name": "unique_name",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"reset_status": null,
"voice_method": "POST",
"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": "POST",
"commands_callback_url": "http://www.example.com",
"voice_fallback_method": "POST",
"commands_callback_method": "POST"
}
{
"sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"e_id": "e_id",
"iccid": "iccid",
"links": {
"rate_plan": "https://wireless.twilio.com/v1/RatePlans/WPbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"data_sessions": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions",
"usage_records": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/UsageRecords"
},
"status": "new",
"sms_url": "http://www.example.com",
"voice_url": "http://www.example.com",
"ip_address": "192.168.1.30",
"sms_method": "POST",
"account_sid": "ACbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"unique_name": "unique_name",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"reset_status": null,
"voice_method": "POST",
"friendly_name": "friendly_name",
"rate_plan_sid": "WPbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"sms_fallback_url": "http://www.example.com",
"voice_fallback_url": "http://www.example.com",
"sms_fallback_method": "POST",
"commands_callback_url": "http://www.example.com",
"voice_fallback_method": "POST",
"commands_callback_method": "POST"
}
{
"sid": "DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"url": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"e_id": "e_id",
"iccid": "iccid",
"links": {
"rate_plan": "https://wireless.twilio.com/v1/RatePlans/WPaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"data_sessions": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/DataSessions",
"usage_records": "https://wireless.twilio.com/v1/Sims/DEaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/UsageRecords"
},
"status": "active",
"sms_url": "http://www.example.com",
"voice_url": "http://www.example.com",
"ip_address": "192.168.1.30",
"sms_method": "POST",
"account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
"unique_name": "unique_name",
"date_created": "2015-07-30T20:00:00Z",
"date_updated": "2015-07-30T20:00:00Z",
"reset_status": "resetting",
"voice_method": "POST",
"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": "POST",
"commands_callback_url": "http://www.example.com",
"voice_fallback_method": "POST",
"commands_callback_method": "GET"
}