updateCallFlags method

Future<DynamiteResponse<CallUpdateCallFlagsResponseApplicationJson, void>> updateCallFlags({
  1. required int flags,
  2. required String token,
  3. CallUpdateCallFlagsApiVersion? apiVersion,
  4. bool? oCSAPIRequest,
})

Update the in-call flags.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • flags New flags.
  • apiVersion Defaults to "v4".
  • token
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: In-call flags updated successfully
  • 400: Updating in-call flags is not possible
  • 404: Call session not found

See:

Implementation

Future<_i1.DynamiteResponse<CallUpdateCallFlagsResponseApplicationJson, void>> updateCallFlags({
  required int flags,
  required String token,
  CallUpdateCallFlagsApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final _request = $updateCallFlags_Request(
    flags: flags,
    token: token,
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _response = await _rootClient.httpClient.send(_request);

  final _serializer = $updateCallFlags_Serializer();
  final _rawResponse =
      await _i1.ResponseConverter<CallUpdateCallFlagsResponseApplicationJson, void>(_serializer).convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}