Sonatype License Overrides API

Use this REST API to manage license overrides for components in your applicationsorganizations and repositories.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Open Source Stewardship BC-4200.60

Operations 4

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/v2/licenseOverrides/{ownerType}/{ownerId} Get license overrides applied to a component · Get applied license overrides #
Ask an LLM
“Which licenses have been overridden for a component in my application?”
“Can I see the applied license overrides for a Maven artifact?”
Tell an agent
Get license overrides applied to {component} in {ownerType} {ownerId}.
Show the overridden licenses for component {component} under {ownerType} {ownerId}.
POST /api/v2/licenseOverrides/{ownerType}/{ownerId} Override licenses on a component · Add license override #
Ask an LLM
“How do I override the licenses detected on a component?”
“Can I change the license status of a component for an application?”
Tell an agent
Override licenses {licenseIds} on {component} in {ownerType} {ownerId}.
Set license override {licenseIds} on component {component} for {ownerType} {ownerId} with comment {comment}.
GET /api/v2/licenseOverrides/{ownerType}/{ownerId}/legalReviewer Get license overrides for a legal reviewer · Get applied license overrides for legal reviewer #
Ask an LLM
“What license overrides are applied to a component from a legal reviewer's view?”
“Can a legal reviewer see overridden licenses for a component?”
Tell an agent
Get license overrides for component {component} in {ownerType} {ownerId} from the legal reviewer perspective.
Show legal reviewer's view of overridden licenses on {component} under {ownerType} {ownerId}.
DELETE /api/v2/licenseOverrides/{ownerType}/{ownerId}/{licenseOverrideId} Delete a license override · Delete license override #
Ask an LLM
“How do I remove a license override on a component?”
“Can I delete one overridden license for an application?”
Tell an agent destructive · confirm first
Delete license override {licenseOverrideId} on {component} in {ownerType} {ownerId}.
Remove license override {licenseOverrideId} from {component} under {ownerType} {ownerId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sonatype:sonatype-license-overrides-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sonatype-license-overrides-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype License Overrides API
  version: '1.0'
  description: 'Operations tagged License Overrides across 2 of this provider''s published API definitions: sonatype-lifecycle-openapi.yml, sonatype-iq-openapi.yml. Each path carries the servers of the definition it was published in.'
security:
- BasicAuth: []
  BearerAuth: []
tags:
- description: Use this REST API to manage license overrides for components in your applicationsorganizations and repositories.
  name: License Overrides
paths:
  /api/v2/licenseOverrides/{ownerType}/{ownerId}:
    get:
      description: 'Use this method to retrieve the applied license overrides for a component.


        Permissions required: View IQ Elements'
      operationId: getAppliedLicenseOverrides
      parameters:
      - description: Select the `ownerType` for which you want to retrieve the applied license overrides.
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          - repository_container
          - repository_manager
          - repository
          pattern: application|organization|repository|repository_manager|repository_container
          type: string
      - description: Enter the id of the application, organization or the repository.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      - description: Enter the componentIdentifier consisting of format and coordinates as a JSON e.g., `?componentIdentifier={"format":"maven","coordinates":"{...}}"}
        in: query
        name: componentIdentifier
        required: true
        schema:
          $ref: '#/components/schemas/ComponentIdentifier'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAppliedLicenseOverridesDTO'
          description: The response contains the license overrides for the component.
      tags:
      - License Overrides
      summary: Get applied license overrides
      x-summary-source: derived
    post:
      description: 'Use this method to add or update a license override to a component for a given owner scope.


        Permissions required: Change Licenses'
      operationId: addLicenseOverride
      parameters:
      - description: Select the `ownerType` scope for which you want to add or update a license override
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          - repository_container
          - repository_manager
          - repository
          pattern: application|organization|repository|repository_manager|repository_container
          type: string
      - description: Enter the id of the application, organization or the repository.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      - in: query
        name: where
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiLicenseOverrideDTO'
        description: "Enter the license override details to add or update a license override for a component.\nThe request body should contain the following fields:\n - `ownerId`: Enter the id of the application, organization or the repository.\n - `comment`: Enter a comment for the license override.\n - `licenseIds`: Enter the license ids for the license override.\n - `componentIdentifier`: Enter the componentIdentifier consisting of format and coordinates.\n - `status`: Enter the status of the license override. The possible values are `OPEN`, `ACKNOWLEDGED`, `OVERRIDDEN`, `SELECTED`, and `CONFIRMED`."
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiLicenseOverrideDTO'
          description: The response contains the same license override information that was added.
      tags:
      - License Overrides
      summary: Add license override
      x-summary-source: derived
  /api/v2/licenseOverrides/{ownerType}/{ownerId}/legalReviewer:
    get:
      description: 'Use this method to retrieve the applied license overrides for a given component and owner.


        Permissions required: Review Legal Obligations For Components Licenses'
      operationId: getAppliedLicenseOverridesForLegalReviewer
      parameters:
      - description: Select the `ownerType` for which you want to retrieve the applied license overrides.
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          - repository_container
          - repository_manager
          - repository
          pattern: application|organization|repository|repository_manager|repository_container
          type: string
      - description: Enter the id of the owner.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      - description: Enter the component format and coordinates.
        in: query
        name: componentIdentifier
        required: true
        schema:
          $ref: '#/components/schemas/ComponentIdentifier'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAppliedLicenseOverridesDTO'
          description: Successfully retrieved the applied license overrides.
      tags:
      - License Overrides
      summary: Get applied license overrides for legal reviewer
      x-summary-source: derived
  /api/v2/licenseOverrides/{ownerType}/{ownerId}/{licenseOverrideId}:
    delete:
      description: 'Use this method to delete a license override for a component.


        Permissions required: Change Licenses'
      operationId: deleteLicenseOverride
      parameters:
      - description: Select the `ownerType` scope for which you want to delete license override
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          - repository_container
          - repository_manager
          - repository
          pattern: application|organization|repository|repository_manager|repository_container
          type: string
      - description: Enter the id of the application, organization or the repository.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      - description: Enter the id of the license override you want to delete.
        in: path
        name: licenseOverrideId
        required: true
        schema:
          type: string
      - in: query
        name: where
        schema:
          type: string
      responses:
        '204':
          description: The license override was deleted successfully.
      tags:
      - License Overrides
      summary: Delete license override
      x-summary-source: derived
components:
  schemas:
    LicenseOverride:
      properties:
        comment:
          type: string
        componentIdentifier:
          $ref: '#/components/schemas/ComponentIdentifier'
        id:
          type: string
        licenseIds:
          items:
            type: string
          type: array
          uniqueItems: true
        ownerId:
          type: string
        status:
          enum:
          - OPEN
          - ACKNOWLEDGED
          - OVERRIDDEN
          - SELECTED
          - CONFIRMED
          type: string
      type: object
    ComponentIdentifier:
      properties:
        coordinates:
          additionalProperties:
            type: string
          type: object
        format:
          type: string
      type: object
    LicenseOverrideByOwner:
      properties:
        licenseOverride:
          $ref: '#/components/schemas/LicenseOverride'
        ownerId:
          type: string
        ownerName:
          type: string
        ownerType:
          enum:
          - application
          - organization
          - repository_container
          - repository_manager
          - repository
          - global
          type: string
      type: object
    ApiLicenseOverrideDTO:
      properties:
        comment:
          type: string
        componentIdentifier:
          $ref: '#/components/schemas/ApiComponentIdentifierDTOV2'
        id:
          type: string
        licenseIds:
          items:
            type: string
          type: array
          uniqueItems: true
        ownerId:
          type: string
        status:
          enum:
          - OPEN
          - ACKNOWLEDGED
          - OVERRIDDEN
          - SELECTED
          - CONFIRMED
          type: string
      type: object
    ApiComponentIdentifierDTOV2:
      properties:
        coordinates:
          additionalProperties:
            type: string
          type: object
        format:
          type: string
      type: object
    ApiAppliedLicenseOverridesDTO:
      properties:
        licenseOverridesByOwner:
          items:
            $ref: '#/components/schemas/LicenseOverrideByOwner'
          type: array
      type: object
    LicenseOverrideByOwner_2:
      type: object
      properties:
        ownerId:
          type: string
        ownerName:
          type: string
        ownerType:
          type: string
          enum:
          - application
          - organization
          - repository_container
          - repository_manager
          - repository
          - hosted_repository_component
          - global
        licenseOverride:
          $ref: '#/components/schemas/LicenseOverride'
  securitySchemes:
    BasicAuth:
      scheme: basic
      type: http
    BearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
x-refined-from:
- sonatype-lifecycle-openapi.yml
- sonatype-iq-openapi.yml