setsipEnabled method

Future<DynamiteResponse<RoomSetsipEnabledResponseApplicationJson, void>> setsipEnabled({
  1. required String token,
  2. required RoomSetsipEnabledRequestApplicationJson $body,
  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:

  • 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 String token,
  required RoomSetsipEnabledRequestApplicationJson $body,
  RoomSetsipEnabledApiVersion? apiVersion,
  bool? oCSAPIRequest,
}) async {
  final _request = $setsipEnabled_Request(
    token: token,
    apiVersion: apiVersion,
    oCSAPIRequest: oCSAPIRequest,
    $body: $body,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

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