setsipEnabled method

Future<DynamiteResponse<RoomSetsipEnabledResponseApplicationJson, void>> setsipEnabled({
  1. required RoomSetsipEnabledState state,
  2. required String token,
  3. RoomSetsipEnabledApiVersion? apiVersion,
  4. bool? oCSAPIRequest,
})

Update SIP enabled state.

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:

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

Status codes:

  • 200: SIP enabled state updated successfully
  • 400: Updating SIP enabled state is not possible
  • 401: User not found
  • 403: Missing permissions to update SIP enabled state
  • 412: SIP not configured

See:

Implementation

Future<_i1.DynamiteResponse<RoomSetsipEnabledResponseApplicationJson, void>> setsipEnabled({
  required RoomSetsipEnabledState state,
  required String token,
  RoomSetsipEnabledApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final _request = $setsipEnabled_Request(
    state: state,
    token: token,
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _response = await _rootClient.httpClient.send(_request);

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