update

View as MarkdownOpen in Claude

Update parameters on an active call, such as the SWML document, URL, or status.

Request

paramsobjectRequired
An object of parameters that will be utilized by the active command.

Response

Call LegobjectRequired
Returned when the call is a standard PSTN, SIP, or WebRTC call.
OR
Fabric Subscriber Device LegobjectRequired

Example

import { RestClient } from "@signalwire/sdk";
const client = new RestClient({
project: "your-project-id",
token: "your-api-token",
host: "your-space.signalwire.com"
});
await client.calling.update("call-id-xxx", {
url: "https://example.com/new-call-handler",
});