v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Overwrite License

Overwrite License For Package

post/licenses/overwrite

Request body

package_namestring required

The name of the package of which the license should be overwritten.

languagestring required

The language related to the package of which the license should be overwritten. This is 'os' for packages related to images.

org_namestring

Name of the organisation who published the packages. Used as an additional identifier for Java packages only.

license_typestring required

The new license type

risk'low' | 'medium' | 'varies_on_usage' | 'high' | 'critical' required

The new risk related to the new license type

reasonstring

The reason for the overwrite

Example request

{
  "package_name": "axios",
  "language": "js",
  "license_type": "MIT",
  "risk": "low",
  "reason": "The axios package is very safe to use"
}

Response

The license has successfully been overwritten for the package

successinteger

The integer 1 indicating success

licenses_overwritten_amountinteger

An integer indicating the amount of licenses that are overwritten

Example response

{
  "success": 1,
  "licenses_overwritten_amount": 18
}