Initiates a call redirect or terminates a call
POST
/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json https://api.twilio.com
Initiates a call redirect or terminates a call
Parameters
path Path Parameters
| Name | Type |
|---|---|
AccountSid
required
The SID of the Account that created the Call resource(s) to update. | `AC${string}` |
Sid
required
The Twilio-provided string that uniquely identifies the Call resource to update | `CA${string}` |
Request Body
application/x-www-form-urlencoded
{
Url?: string;
Method?: "GET" | "POST";
Status?:CallEnumUpdateStatus ;
FallbackUrl?: string;
FallbackMethod?: "GET" | "POST";
StatusCallback?: string;
StatusCallbackMethod?: "GET" | "POST";
Twiml?: string;
TimeLimit?: number;
}
Url?: string;
Method?: "GET" | "POST";
Status?:
FallbackUrl?: string;
FallbackMethod?: "GET" | "POST";
StatusCallback?: string;
StatusCallbackMethod?: "GET" | "POST";
Twiml?: string;
TimeLimit?: number;
}
Responses
200 application/json
OK
interface ApiV2010AccountCall {
sid?: `CA${string}` | null;
date_created?: string | null;
date_updated?: string | null;
parent_call_sid?: `CA${string}` | null;
account_sid?: `AC${string}` | null;
to?: string | null;
to_formatted?: string | null;
from?: string | null;
from_formatted?: string | null;
phone_number_sid?: `PN${string}` | null;
status?:CallEnumStatus ;
start_time?: string | null;
end_time?: string | null;
duration?: string | null;
price?: string | null;
price_unit?: string | null;
direction?: string | null;
answered_by?: string | null;
api_version?: string | null;
forwarded_from?: string | null;
group_sid?: `GP${string}` | null;
caller_name?: string | null;
queue_time?: string | null;
trunk_sid?: `TK${string}` | null;
uri?: string | null;
subresource_uris?: {} | null;
}
sid?: `CA${string}` | null;
date_created?: string | null;
date_updated?: string | null;
parent_call_sid?: `CA${string}` | null;
account_sid?: `AC${string}` | null;
to?: string | null;
to_formatted?: string | null;
from?: string | null;
from_formatted?: string | null;
phone_number_sid?: `PN${string}` | null;
status?:
start_time?: string | null;
end_time?: string | null;
duration?: string | null;
price?: string | null;
price_unit?: string | null;
direction?: string | null;
answered_by?: string | null;
api_version?: string | null;
forwarded_from?: string | null;
group_sid?: `GP${string}` | null;
caller_name?: string | null;
queue_time?: string | null;
trunk_sid?: `TK${string}` | null;
uri?: string | null;
subresource_uris?: {} | null;
}