Sonatype · Capability

Sonatype Lifecycle Public REST API — License Overrides

Sonatype Lifecycle Public REST API — License Overrides. 4 operations. Lead operation: License Overrides. Self-contained Naftiko capability covering one Sonatype business surface.

Run with Naftiko SonatypeLicense Overrides

What You Can Do

GET
Getappliedlicenseoverrides — Use this method to retrieve the applied license overrides for a component.
/v1/api/v2/licenseoverrides/{ownertype}/{ownerid}
POST
Addlicenseoverride — Use this method to add or update a license override to a component for a given owner scope.
/v1/api/v2/licenseoverrides/{ownertype}/{ownerid}
GET
Getappliedlicenseoverridesforlegalreviewer — Use this method to retrieve the applied license overrides for a given component and owner.
/v1/api/v2/licenseoverrides/{ownertype}/{ownerid}/legalreviewer
DELETE
Deletelicenseoverride — Use this method to delete a license override for a component.
/v1/api/v2/licenseoverrides/{ownertype}/{ownerid}/{licenseoverrideid}

MCP Tools

use-this-method-retrieve-applied

Use this method to retrieve the applied license overrides for a component.

read-only idempotent
use-this-method-add-update

Use this method to add or update a license override to a component for a given owner scope.

use-this-method-retrieve-applied-2

Use this method to retrieve the applied license overrides for a given component and owner.

read-only idempotent
use-this-method-delete-license

Use this method to delete a license override for a component.

idempotent

Capability Spec

lifecycle-license-overrides.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sonatype Lifecycle Public REST API — License Overrides
  description: 'Sonatype Lifecycle Public REST API — License Overrides. 4 operations. Lead operation: License Overrides. Self-contained
    Naftiko capability covering one Sonatype business surface.'
  tags:
  - Sonatype
  - License Overrides
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SONATYPE_API_KEY: SONATYPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: lifecycle-license-overrides
    baseUri: ''
    description: Sonatype Lifecycle Public REST API — License Overrides business capability. Self-contained, no shared references.
    resources:
    - name: api-v2-licenseOverrides-ownerType-ownerId
      path: /api/v2/licenseOverrides/{ownerType}/{ownerId}
      operations:
      - name: getappliedlicenseoverrides
        method: GET
        description: Use this method to retrieve the applied license overrides for a component.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: Select the `ownerType` for which you want to retrieve the applied license overrides.
          required: true
        - name: ownerId
          in: path
          type: string
          description: Enter the id of the application, organization or the repository.
          required: true
        - name: componentIdentifier
          in: query
          type: string
          description: Enter the componentIdentifier consisting of format and coordinates as a JSON e.g., `?componentIdentifier={"format":"maven","coordinates":"{...}}"}
          required: true
      - name: addlicenseoverride
        method: POST
        description: Use this method to add or update a license override to a component for a given owner scope.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: Select the `ownerType` scope for which you want to add or update a license override
          required: true
        - name: ownerId
          in: path
          type: string
          description: Enter the id of the application, organization or the repository.
          required: true
        - name: where
          in: query
          type: string
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: api-v2-licenseOverrides-ownerType-ownerId-legalReviewer
      path: /api/v2/licenseOverrides/{ownerType}/{ownerId}/legalReviewer
      operations:
      - name: getappliedlicenseoverridesforlegalreviewer
        method: GET
        description: Use this method to retrieve the applied license overrides for a given component and owner.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: Select the `ownerType` for which you want to retrieve the applied license overrides.
          required: true
        - name: ownerId
          in: path
          type: string
          description: Enter the id of the owner.
          required: true
        - name: componentIdentifier
          in: query
          type: string
          description: Enter the component format and coordinates.
          required: true
    - name: api-v2-licenseOverrides-ownerType-ownerId-licenseOverrideId
      path: /api/v2/licenseOverrides/{ownerType}/{ownerId}/{licenseOverrideId}
      operations:
      - name: deletelicenseoverride
        method: DELETE
        description: Use this method to delete a license override for a component.
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: ownerType
          in: path
          type: string
          description: Select the `ownerType` scope for which you want to delete license override
          required: true
        - name: ownerId
          in: path
          type: string
          description: Enter the id of the application, organization or the repository.
          required: true
        - name: licenseOverrideId
          in: path
          type: string
          description: Enter the id of the license override you want to delete.
          required: true
        - name: where
          in: query
          type: string
    authentication:
      type: bearer
      token: '{{env.SONATYPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: lifecycle-license-overrides-rest
    port: 8080
    description: REST adapter for Sonatype Lifecycle Public REST API — License Overrides. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/api/v2/licenseoverrides/{ownertype}/{ownerid}
      name: api-v2-licenseoverrides-ownertype-ownerid
      description: REST surface for api-v2-licenseOverrides-ownerType-ownerId.
      operations:
      - method: GET
        name: getappliedlicenseoverrides
        description: Use this method to retrieve the applied license overrides for a component.
        call: lifecycle-license-overrides.getappliedlicenseoverrides
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
          componentIdentifier: rest.componentIdentifier
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addlicenseoverride
        description: Use this method to add or update a license override to a component for a given owner scope.
        call: lifecycle-license-overrides.addlicenseoverride
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
          where: rest.where
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/licenseoverrides/{ownertype}/{ownerid}/legalreviewer
      name: api-v2-licenseoverrides-ownertype-ownerid-legalreviewer
      description: REST surface for api-v2-licenseOverrides-ownerType-ownerId-legalReviewer.
      operations:
      - method: GET
        name: getappliedlicenseoverridesforlegalreviewer
        description: Use this method to retrieve the applied license overrides for a given component and owner.
        call: lifecycle-license-overrides.getappliedlicenseoverridesforlegalreviewer
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
          componentIdentifier: rest.componentIdentifier
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/v2/licenseoverrides/{ownertype}/{ownerid}/{licenseoverrideid}
      name: api-v2-licenseoverrides-ownertype-ownerid-licenseoverrideid
      description: REST surface for api-v2-licenseOverrides-ownerType-ownerId-licenseOverrideId.
      operations:
      - method: DELETE
        name: deletelicenseoverride
        description: Use this method to delete a license override for a component.
        call: lifecycle-license-overrides.deletelicenseoverride
        with:
          ownerType: rest.ownerType
          ownerId: rest.ownerId
          licenseOverrideId: rest.licenseOverrideId
          where: rest.where
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lifecycle-license-overrides-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sonatype Lifecycle Public REST API — License Overrides. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: use-this-method-retrieve-applied
      description: Use this method to retrieve the applied license overrides for a component.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-license-overrides.getappliedlicenseoverrides
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
        componentIdentifier: tools.componentIdentifier
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-add-update
      description: Use this method to add or update a license override to a component for a given owner scope.
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lifecycle-license-overrides.addlicenseoverride
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
        where: tools.where
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-retrieve-applied-2
      description: Use this method to retrieve the applied license overrides for a given component and owner.
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lifecycle-license-overrides.getappliedlicenseoverridesforlegalreviewer
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
        componentIdentifier: tools.componentIdentifier
      outputParameters:
      - type: object
        mapping: $.
    - name: use-this-method-delete-license
      description: Use this method to delete a license override for a component.
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lifecycle-license-overrides.deletelicenseoverride
      with:
        ownerType: tools.ownerType
        ownerId: tools.ownerId
        licenseOverrideId: tools.licenseOverrideId
        where: tools.where
      outputParameters:
      - type: object
        mapping: $.