code: public ApiSuccessResponse acceptChat(String id, AcceptData acceptData) throws ApiException {
          ApiResponse<ApiSuccessResponse> resp = acceptChatWithHttpInfo(id, acceptData);
          return resp.getData();
      }
docs: Accept a chat
  Accept the specified chat interaction.
  @param id The ID of the chat interaction. (required)
  @param acceptData Request parameters. (optional)
  @return ApiSuccessResponse
  @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body