updateCallWithHttpInfo method

Future<Response> updateCallWithHttpInfo(
  1. String type,
  2. String id,
  3. UpdateCallRequest updateCallRequest
)

Update Call

Sends events: - call.updated Required permissions: - UpdateCall

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> updateCallWithHttpInfo(
  String type,
  String id,
  UpdateCallRequest updateCallRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call/{type}/{id}'
      .replaceAll('{type}', type)
      .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = updateCallRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'PATCH',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}