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<DynamiteResponse<CallUpdateCallFlagsResponseApplicationJson, void>> updateCallFlags({
  required int flags,
  required String token,
  CallUpdateCallFlagsApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final rawResponse = updateCallFlagsRaw(
    flags: flags,
    token: token,
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
  );

  return rawResponse.future;
}