Skip to main content

Update a Call

Use this endpoint for the Calls method to modify an active call.

Parameters

ParameterDescription
Sid RequiredThe unique identifier for the call to update.
FallbackMethod OptionalWhether the request to FallbackUrl is a GET or a POST. Default is POST.
FallbackUrl OptionalThe URL SignalWire will request if errors occur when fetching the Url.
Method OptionalWhether the request to Url is a GET or a POST. Default is POST.
Status OptionalChange the status of the call. Possible values are canceled and completed.
StatusCallback OptionalThe URL SignalWire will send webhooks to on every StatusCallbackEvent event. Default is completed.
StatusCallbackMethod OptionalWhether the request to StatusCallback URL is a GET or a POST. Default is POST.
Url OptionalThe URL of a new Compatibility XML document to start executing.

Examples

Request

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \
-X POST \
-u "YourProjectID:YourAuthToken"

Request: Terminate a Call

In this example, we terminate a call in progress by updating the call status to completed.

curl https://example.signalwire.com/api/laml/2010-04-01/Accounts/{AccountSid}/Calls/{Sid}.json \
-X POST \
--data-urlencode "Status=completed" \
-u "YourProjectID:YourAuthToken"