code: public ApiResponse<ApiSuccessResponse> mediaSwicthToBargeInWithHttpInfo(String mediatype, String id, MediaSwicthToCoachData mediaSwicthToCoachData) throws ApiException {
          com.squareup.okhttp.Call call = mediaSwicthToBargeInValidateBeforeCall(mediatype, id, mediaSwicthToCoachData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Switch to barge-in
  Switch to the barge-in monitoring mode for the specified chat. Both the agent and the customer can see the supervisor&#39;s messages.
  @param mediatype The media channel. (required)
  @param id The ID of the chat interaction. (required)
  @param mediaSwicthToCoachData Request parameters. (optional)
  @return ApiResponse&lt;ApiSuccessResponse&gt;
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body