REST ClientCalling

update

View as MarkdownOpen in Claude

Update parameters on an active call, such as metadata or call settings.

Unlike most calling methods, update() does not take a positional call_id parameter. Pass all fields (including call identification) as keyword arguments.

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

1from signalwire.rest import RestClient
2
3client = RestClient(
4 project="your-project-id",
5 token="your-api-token",
6 host="your-space.signalwire.com",
7)
8
9client.calling.update(call_id="call-id-xxx", metadata={"department": "sales"})