/// <summary> /// PUT /v1/calls/{uuid} - modify an existing Call /// </summary> /// <param name="id">id of call</param> /// <param name="cmd">Command to execute against call</param> /// <param name="creds">(Optional) Overridden credentials for only this request</param> /// <exception cref="VonageHttpRequestException">thrown if an error is encountered when talking to the API</exception> public bool UpdateCall(string id, CallEditCommand command, Credentials creds = null) { ApiRequest.DoRequestWithJsonContent <CallRecord>( PUT, ApiRequest.GetBaseUri(ApiRequest.UriType.Api, $"{CALLS_ENDPOINT}/{id}"), command, ApiRequest.AuthType.Bearer, creds ?? Credentials ); return(true); }
public bool UpdateCall(string id, CallEditCommand command, Credentials creds = null) { return(UpdateCallAsync(id, command, creds).GetAwaiter().GetResult()); }