updateCallFlags method
Future<DynamiteResponse<CallUpdateCallFlagsResponseApplicationJson, void> >
updateCallFlags({
- required int flags,
- required String token,
- CallUpdateCallFlagsApiVersion? apiVersion,
- 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 tov4
.token
oCSAPIRequest
Required to be true for the API request to pass. Defaults totrue
.
Status codes:
- 200: In-call flags updated successfully
- 400: Updating in-call flags is not possible
- 404: Call session not found
See:
- updateCallFlagsRaw for an experimental operation that returns a
DynamiteRawResponse
that can be serialized.
Implementation
Future<_i1.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;
}