Update a Call
PUThttps://{Your_Space_Name}.signalwire.com/api/calling/calls
To update an existing Call, you send a PUT
request to the Call resource with a payload including an update
command and additional nested params
.
Request
Responses
- 200
- 401
- 404
- 422
The request has succeeded.
Access is unauthorized.
The server cannot find the requested resource.
Client error
Authorization: http
name: BasicAuthtype: httpscheme: basic
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://{Your_Space_Name}.signalwire.com/api/calling/calls");
request.Headers.Add("Accept", "application/json");
var content = new StringContent("{\n \"command\": \"update\",\n \"params\": {\n \"id\": \"3fa85f64-5717-4562-b3fc-2c963f66afa6\",\n \"fallback_url\": \"https://example.com/fallback\",\n \"status\": \"canceled\",\n \"url\": \"https://example.com/swml\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear