provider Api20100401Call POST /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json
@utdk/twilio /2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json
Initiates a call redirect or terminates a call
Initiates a call redirect or terminates a call
AccountSid path required
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update.
string
Sid path required
The Twilio-provided string that uniquely identifies the Call resource to update
string

Try it

Authentication
Configure credentials for Twilio - Api
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updatecall
POST/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json
Initiates a call redirect or terminates a call

Parameters

required

The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Call resource(s) to update.

required

The Twilio-provided string that uniquely identifies the Call resource to update

Input

The absolute URL that returns the TwiML instructions for the call. We will call this URL using the `method` when the call connects. For more information, see the [Url Parameter](https://www.twilio.com/docs/voice/make-calls#specify-a-url-parameter) section in [Making Calls](https://www.twilio.com/docs/voice/make-calls).

The HTTP method we should use when calling the `url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored.

The URL that we call using the `fallback_method` if an error occurs when requesting or executing the TwiML at `url`. If an `application_sid` parameter is present, this parameter is ignored.

The HTTP method that we should use to request the `fallback_url`. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored.

The URL we should call using the `status_callback_method` to send status information to your application. If no `status_callback_event` is specified, we will send the `completed` status. If an `application_sid` parameter is present, this parameter is ignored. URLs must contain a valid hostname (underscores are not permitted).

The HTTP method we should use when requesting the `status_callback` URL. Can be: `GET` or `POST` and the default is `POST`. If an `application_sid` parameter is present, this parameter is ignored.

TwiML instructions for the call Twilio will use without fetching Twiml from url. Twiml and url parameters are mutually exclusive

The maximum duration of the call in seconds. Constraints depend on account and configuration.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import twilio from '@utdk/twilio';

await twilio.updatecall()