# Update a Call Use this endpoint for the [Calls](./index.mdx) method to modify an active call. ## Parameters | Parameter | Description | | :- | :-- | | Sid required | The unique identifier for the call to update. | | FallbackMethod optional | Whether the request to FallbackUrl is a GET or a POST. Default is POST. | | FallbackUrl optional | The URL SignalWire will request if errors occur when fetching the Url. | | Method optional | Whether the request to Url is a GET or a POST. Default is POST. | | Status optional | Change the status of the call. Possible values are canceled and completed. | | StatusCallback optional | The URL SignalWire will send webhooks to on every StatusCallbackEvent event. Default is completed. | | StatusCallbackMethod optional | Whether the request to StatusCallback URL is a GET or a POST. Default is POST. | | Url optional | The URL of a new Compatibility XML document to start executing. | ## Examples ### Request shell curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \ -X POST \ -u YourProjectID:YourAuthToken javascript const { RestClient } = require(@signalwire/compatibility-api) const client = RestClient(YourProjectID, YourAuthToken, { signalwireSpaceUrl: example.signalwire.com }) client.calls(Sid) .update() .then(call => console.log(call.to)) .done(); csharp using System; using System.Collections.Generic; using Twilio; using Twilio.Rest.Api.V2010.Account; class Program { static void Main(string[] args) { TwilioClient.Init(YourProjectID, YourAuthToken, new Dictionary { [signalwireSpaceUrl] = {SPACE}.signalwire.com }); var call = CallResource.Update( ); Console.WriteLine(call.To); } } python from signalwire.rest import Client as signalwire_client client = signalwire_client(YourProjectID, YourAuthToken, signalwire_space_url = example.signalwire.com) call = client.calls(Sid) \ .update() print(call.to) ruby require signalwire/sdk @client = Signalwire::REST::Client.new YourProjectID, YourAuthToken, signalwire_space_url: example.signalwire.com call = @client.calls(Sid) .update() puts call.to ### Request: Terminate a Call In this example, we terminate a call in progress by updating the call status to completed. shell curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \ -X POST \ --data-urlencode Status=completed \ -u YourProjectID:YourAuthToken javascript const { RestClient } = require(@signalwire/compatibility-api) const client = RestClient(YourProjectID, YourAuthToken, { signalwireSpaceUrl: example.signalwire.com }) client.calls(Sid) .update({status: completed}) .then(call => console.log(call.to)) .done(); csharp using System; using System.Collections.Generic; using Twilio; using Twilio.Rest.Api.V2010.Account; class Program { static void Main(string[] args) { TwilioClient.Init(YourProjectID, YourAuthToken, new Dictionary { [signalwireSpaceUrl] = {SPACE}.signalwire.com }); var call = CallResource.Update( status: CallResource.UpdateStatusEnum.Completed, ); Console.WriteLine(call.To); } } python from signalwire.rest import Client as signalwire_client client = signalwire_client(YourProjectID, YourAuthToken, signalwire_space_url = example.signalwire.com) call = client.calls(Sid) \ .update(status=completed) print(call.to) ruby require signalwire/sdk @client = Signalwire::REST::Client.new YourProjectID, YourAuthToken, signalwire_space_url: example.signalwire.com call = @client.calls(Sid) .update(status: completed) puts call.to