Update a Call
Redirects an active call to new cXML instructions, cancels a queued call, or completes an in-progress call. Use it when controlling a call by Call SID and form-encoded cXML settings; use the Calling API for SWML call commands.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice.
Learn more about API scopes.
Path parameters
Universal Unique Identifier.
The Project ID that uniquely identifies the Account.
Universal Unique Identifier.
The unique identifier for the call.
Response
The request has succeeded.
Example response
{
"date_created": "Wed, 19 Sep 2018 20:00:00 +0000",
"date_updated": "Wed, 19 Sep 2018 21:00:00 +0000",
"to": "+13105678901",
"formatted_to": "(310) 567-8901",
"to_formatted": "(310) 567-8901",
"from": "+13103384645",
"formatted_from": "(310) 338-4645",
"from_formatted": "(310) 338-4645",
"start_time": "Wed, 19 Sep 2018 20:00:01 +0000",
"end_time": "Fri, 21 Sep 2018 10:00:00 +0000",
"duration": 20,
"price": 0.003,
"price_unit": "USD",
"api_version": "2010-04-01",
"uri": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Calls/b3877c40-da60-4998-90ad-b792e98472ca.json",
"subresource_uris": {
"recordings": "/api/laml/2010-04-01/Accounts/b3877c40-da60-4998-90ad-b792e98472af/Calls/b3877c40-da60-4998-90ad-b792e98472ca/Recordings.json"
},
"audio_in_mos": 4.5,
"sip_result_code": "200",
"audio_rtt_avg": 50,
"audio_rtt_min": 20,
"audio_rtt_max": 100,
"audio_out_jitter_min": 1,
"audio_out_jitter_max": 10,
"audio_out_jitter_avg": 5
}Changes
Changed in 9 of the 40 revisions of this API.46577
- ▲
the
account_sidresponse's property type/format changed fromstring/uuidto/for status200response-property-type-changed
- ▲
the
parent_call_sidresponse's property type/format changed from/uuidto/for status200response-property-type-changed
- ▲
the
phone_number_sidresponse's property type/format changed from/uuidto/for status200response-property-type-changed
- ▲
the
sidresponse's property type/format changed fromstring/uuidto/for status200response-property-type-changed
- ○
added
uuidto theaccount_sidresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
uuidto thesidresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
uuidto theparent_call_sidresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
uuidto thephone_number_sidresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
subschema #1from theparent_call_sidresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
subschema #1from thephone_number_sidresponse propertyanyOflist for the response status200response-property-any-of-removed
- ▲
- ▲
added 'unevaluatedProperties' constraint to the request body
request-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
200response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
400response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
401response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
404response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
422response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the response body for the status
503response-body-unevaluated-properties-added
- ○
added 'unevaluatedProperties' constraint to the
subresource_uris/allOf[CallSubresourceUris]/response property for the status200response-property-unevaluated-properties-added
- ▲
- ▲
response property
annotationlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_in_moslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_out_jitter_avglist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_out_jitter_maxlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_out_jitter_minlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_out_lostlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_rtt_avglist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_rtt_maxlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
audio_rtt_minlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
caller_namelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
end_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
forwarded_fromlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
group_sidlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
parent_call_sidlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
phone_number_sidlist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
pricelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
sip_result_codelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
start_timelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ▲
response property
subresource_uris/allOf[CallSubresourceUris]/notificationslist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
removed
AnsweredByfrom theanswered_byresponse propertyallOflist for the response status200response-property-all-of-removed
- ○
added
AnsweredBysubschema #2to theanswered_byresponse propertyanyOflist for the response status200response-property-any-of-added
- ▲
- ●
removed the request property
Lamlrequest-property-removed
- ●
removed the request property
Twimlrequest-property-removed
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the non-success response with the status
400response-non-success-status-added
- ○
added the non-success response with the status
503response-non-success-status-added
- ○
- ▲
the
FallbackUrlrequest property type/format changed fromstring/tostring/urirequest-property-type-changed
- ▲
the
StatusCallbackrequest property type/format changed fromstring/tostring/urirequest-property-type-changed
- ▲
the
Urlrequest property type/format changed fromstring/tostring/urirequest-property-type-changed
- ▲
the response property
annotationbecame nullable for the status200response-property-became-nullable
- ▲
the response property
answered_bybecame nullable for the status200response-property-became-nullable
- ▲
the response property
end_timebecame nullable for the status200response-property-became-nullable
- ▲
the response property
forwarded_frombecame nullable for the status200response-property-became-nullable
- ▲
the response property
parent_call_sidbecame nullable for the status200response-property-became-nullable
- ▲
the response property
phone_number_sidbecame nullable for the status200response-property-became-nullable
- ▲
the response property
pricebecame nullable for the status200response-property-became-nullable
- ▲
the response property
start_timebecame nullable for the status200response-property-became-nullable
- ▲
the response property
subresource_uris/allOf[CallSubresourceUris]/notificationsbecame nullable for the status200response-property-became-nullable
- ●
added the new
no-answerenum value to thestatus/allOf[CallStatus]/response property for the response status200response-property-enum-value-added
- ○
added the new optional request property
Lamlnew-optional-request-property
- ○
added the new optional request property
Twimlnew-optional-request-property
- ○
added the non-success response with the status
422response-non-success-status-added
- ○
the response property
account_sidbecame required for the status200response-property-became-required
- ○
the response property
annotationbecame required for the status200response-property-became-required
- ○
the response property
answered_bybecame required for the status200response-property-became-required
- ○
the response property
api_versionbecame required for the status200response-property-became-required
- ○
the response property
date_createdbecame required for the status200response-property-became-required
- ○
the response property
date_updatedbecame required for the status200response-property-became-required
- ○
the response property
directionbecame required for the status200response-property-became-required
- ○
the response property
durationbecame required for the status200response-property-became-required
- ○
the response property
end_timebecame required for the status200response-property-became-required
- ○
the response property
formatted_frombecame required for the status200response-property-became-required
- ○
the response property
formatted_tobecame required for the status200response-property-became-required
- ○
the response property
forwarded_frombecame required for the status200response-property-became-required
- ○
the response property
frombecame required for the status200response-property-became-required
- ○
the response property
parent_call_sidbecame required for the status200response-property-became-required
- ○
the response property
phone_number_sidbecame required for the status200response-property-became-required
- ○
the response property
pricebecame required for the status200response-property-became-required
- ○
the response property
price_unitbecame required for the status200response-property-became-required
- ○
the response property
sidbecame required for the status200response-property-became-required
- ○
the response property
start_timebecame required for the status200response-property-became-required
- ○
the response property
statusbecame required for the status200response-property-became-required
- ○
the response property
subresource_urisbecame required for the status200response-property-became-required
- ○
the response property
subresource_uris/allOf[CallSubresourceUris]/notificationsbecame required for the status200response-property-became-required
- ○
the response property
subresource_uris/allOf[CallSubresourceUris]/recordingsbecame required for the status200response-property-became-required
- ○
the response property
tobecame required for the status200response-property-became-required
- ○
the response property
uribecame required for the status200response-property-became-required
- ○
added the required property
audio_in_mosto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_out_jitter_avgto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_out_jitter_maxto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_out_jitter_minto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_out_lostto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_rtt_avgto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_rtt_maxto the response with the200statusresponse-required-property-added
- ○
added the required property
audio_rtt_minto the response with the200statusresponse-required-property-added
- ○
added the required property
caller_nameto the response with the200statusresponse-required-property-added
- ○
added the required property
from_formattedto the response with the200statusresponse-required-property-added
- ○
added the required property
group_sidto the response with the200statusresponse-required-property-added
- ○
added the required property
sip_result_codeto the response with the200statusresponse-required-property-added
- ○
added the required property
to_formattedto the response with the200statusresponse-required-property-added
This revision also has 11 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the media type
application/jsonfrom the request bodyrequest-body-media-type-removed
- ○
added the media type
application/x-www-form-urlencodedto the request bodyrequest-body-media-type-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the response property
annotationbecame nullable for the status200response-property-became-nullable
- ▲
- ▲
added the new path request parameter
AccountSidnew-request-path-parameter
- ▲
added the new path request parameter
Sidnew-request-path-parameter
- ▲
removed the media type
application/x-www-form-urlencodedfrom the request bodyrequest-body-media-type-removed
- ▲
the
answered_byresponse's property type/format changed fromstring/to/for status200response-property-type-changed
- ▲
the
api_versionresponse's property type/format changed from/tostring/for status200response-property-type-changed
- ▲
the
directionresponse's property type/format changed fromstring/to/for status200response-property-type-changed
- ▲
the
statusresponse's property type/format changed fromstring/to/for status200response-property-type-changed
- ▲
the
subresource_urisresponse's property type/format changed fromobject/to/for status200response-property-type-changed
- ●
removed the optional property
subresource_uris/notificationsfrom the response with the200statusresponse-optional-property-removed
- ●
removed the optional property
subresource_uris/recordingsfrom the response with the200statusresponse-optional-property-removed
- ○
added the media type
application/jsonto the request bodyrequest-body-media-type-added
- ○
added the non-success response with the status
401response-non-success-status-added
- ○
added the non-success response with the status
404response-non-success-status-added
- ○
added
AnsweredByto theanswered_byresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
CallDirectionto thedirectionresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
CallStatusto thestatusresponse propertyallOflist for the response status200response-property-all-of-added
- ○
added
CallSubresourceUristo thesubresource_urisresponse propertyallOflist for the response status200response-property-all-of-added
- ○
removed the
busyenum value from thestatusresponse property for the response status200response-property-enum-value-removed
- ○
removed the
canceledenum value from thestatusresponse property for the response status200response-property-enum-value-removed
- ○
removed the
completedenum value from thestatusresponse property for the response status200response-property-enum-value-removed
- ○
removed the
failedenum value from thestatusresponse property for the response status200response-property-enum-value-removed
- ○
removed the
humanenum value from theanswered_byresponse property for the response status200response-property-enum-value-removed
- ○
removed the
in-progressenum value from thestatusresponse property for the response status200response-property-enum-value-removed
- ○
removed the
inboundenum value from thedirectionresponse property for the response status200response-property-enum-value-removed
- ○
removed the
machineenum value from theanswered_byresponse property for the response status200response-property-enum-value-removed
- ○
removed the
outboundenum value from thedirectionresponse property for the response status200response-property-enum-value-removed
- ○
removed the
queuedenum value from thestatusresponse property for the response status200response-property-enum-value-removed
- ○
removed the
ringingenum value from thestatusresponse property for the response status200response-property-enum-value-removed
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲