code: public void addRecentTarget(Target target, String media, long timestamp) throws WorkspaceApiException {
          try {
              TargetsrecentsaddData data = new TargetsrecentsaddData();
              data.setTarget(toInformation(target));
              RecentData recentData = new RecentData();
              recentData.setMedia(media);
              recentData.setTimeStamp(new BigDecimal(timestamp));
              data.setRecentInformation(recentData);
              RecentTargetData recentTargetData = new RecentTargetData();
              recentTargetData.setData(data);
              ApiSuccessResponse resp = targetsApi.addRecentTarget(recentTargetData);
              Util.throwIfNotOk(resp);
          }
          catch(ApiException ex) {
              throw new WorkspaceApiException("Cannot add recent target", ex);
          }
      }
docs: Add a target that the agent recently used.
  @param target The target to add.
  @param media The media channel the where the target was recently used.
  @param timestamp The timestamp for when the target was used. This value should be a number representing the milliseconds elapsed since the UNIX epoch. (optional)