code: public ApiSuccessResponse inviteByQueue(String id, InviteData1 inviteData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = inviteByQueueWithHttpInfo(id, inviteData);
          return resp.getData();
      }
docs: Invite another agent to a chat via a queue
  Invite another agent to the chat conference by sending an invitation to the specified queue. The next available agent in the queue is then sent an invite to join the chat. The customer is notified when the invited agent joins the chat. The agents can communicate with the customer or they can communicate with each other without the customer seeing their messages, depending on the value you set for the **visibility** parameter when you call [/media/chat/interactions/{id}/send-message](/reference/workspace/Media/index.html#sendMessage).
  @param id The ID of the chat interaction. (required)
  @param inviteData  (required)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body