---
title: "Overwrite License"
method: POST
path: "/licenses/overwrite"
---

# Overwrite License

`POST /licenses/overwrite`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/licenses/overwrite`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `licenses:write`

Overwrite License For Package

## Request body

- object
  - `package_name` string, required: The name of the package of which the license should be overwritten.
  - `language` string, required: The language related to the package of which the license should be overwritten. This is 'os' for packages related to images.
  - `org_name` string: Name of the organisation who published the packages. Used as an additional identifier for Java packages only.
  - `license_type` string, required: The new license type
  - `risk` 'low' | 'medium' | 'varies_on_usage' | 'high' | 'critical', required: The new risk related to the new license type
  - `reason` string: The reason for the overwrite

## Response `200`

The license has successfully been overwritten for the package

- object
  - `success` integer: The integer 1 indicating success
  - `licenses_overwritten_amount` integer: An integer indicating the amount of licenses that are overwritten

## Other responses

- `400`: One or more of the provided fields are invalid.

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
