code: public ApiSuccessResponse mediaSwicthToMonitor(String mediatype, String id, MediaSwicthToCoachData2 mediaSwicthToCoachData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = mediaSwicthToMonitorWithHttpInfo(mediatype, id, mediaSwicthToCoachData);
          return resp.getData();
      }
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 ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body