code: public Response setLicense(String photoId, Integer licenseId) throws JinxException {
      JinxUtils.validateParams(photoId, licenseId);
      Map<String, String> params = new TreeMap<>();
      params.put("method", "flickr.photos.licenses.setLicense");
      params.put("photo_id", photoId);
      params.put("license_id", licenseId.toString());
      return jinx.flickrPost(params, Response.class);
    }
docs: Sets the license for a photo.
  <br>
  This method requires authentication with 'write' permission.
  
  @param photoId   (Required) The photo to update the license for.
  @param licenseId (Required) The license to apply, or 0 (zero) to remove the current license.
  Note: as of this writing the "no known copyright restrictions" license (7) is not a valid argument.
  @return object with the status of the requested operation.
  @throws JinxException if required parameters are missing, or if there are any errors.
  @see <a href="https://www.flickr.com/services/api/flickr.photos.licenses.setLicense.html">flickr.photos.licenses.setLicense</a>