Sets a package as preferred for its OS and CPU, unsetting the previously preferred package if there was one.

Request

POST https://{hostname}:{port}
    /cli/javaPackage/setPreferredJavaPackage?{parameters}
Table 1. Request parameters
Parameter Type Required Description
package string true Name or ID of the java package

Related CLI command: setPreferredJavaPackage.