code: public ApiResponse<ApiSuccessResponse> mediaSwicthToMonitorWithHttpInfo(String mediatype, String id, MediaSwicthToCoachData2 mediaSwicthToCoachData) throws ApiException {
          com.squareup.okhttp.Call call = mediaSwicthToMonitorValidateBeforeCall(mediatype, id, mediaSwicthToCoachData, null, null);
          Type localVarReturnType = new TypeToken<ApiSuccessResponse>(){}.getType();
          return apiClient.execute(call, localVarReturnType);
      }
docs: Switch to monitor
  Switch to the monitor mode for the specified chat. The supervisor can&#39;t send messages in this mode and only another supervisor can see that the monitoring supervisor joined the chat.
  @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