Sonatype Legacy Violations Configuration API

Use this REST API to view and update legacy-violation configuration for an application or organization.

Operations 2

GET /api/v2/config/legacyViolations/{ownerType}/{ownerId} Get config #
PUT /api/v2/config/legacyViolations/{ownerType}/{ownerId} Set config #

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-legacy-violations-configuration-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

sonatype-legacy-violations-configuration-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Lifecycle Public REST Legacy Violations…
  version: 1.207.1-04
  description: Use this REST API to view and update legacy-violation configuration for an application or organization.
security:
- BasicAuth: []
  BearerAuth: []
tags:
- name: Legacy Violations Configuration
  description: Use this REST API to view and update legacy-violation configuration for an application or organization.
paths:
  /api/v2/config/legacyViolations/{ownerType}/{ownerId}:
    get:
      tags:
      - Legacy Violations Configuration
      description: 'Use this method to retrieve the legacy-violation configuration for an owner.


        Permissions required: View IQ Elements'
      operationId: getConfig
      parameters:
      - name: ownerType
        in: path
        description: 'Owner type. Allowed values: `application`, `organization`.'
        required: true
        schema:
          pattern: application|organization
          type: string
      - name: ownerId
        in: path
        description: Public id of the application, or id of the organization.
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Successfully retrieved legacy-violation configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiLegacyViolationStatusDTO'
      summary: Get config
      x-summary-source: derived
    put:
      tags:
      - Legacy Violations Configuration
      description: 'Use this method to update the legacy-violation configuration for an owner.


        Permissions required: Edit IQ Elements'
      operationId: setConfig
      parameters:
      - name: ownerType
        in: path
        description: 'Owner type. Allowed values: `application`, `organization`.'
        required: true
        schema:
          pattern: application|organization
          type: string
      - name: ownerId
        in: path
        description: Public id of the application, or id of the organization.
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiLegacyViolationStatusDTO'
      responses:
        '200':
          description: Successfully updated legacy-violation configuration.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiLegacyViolationStatusDTO'
      summary: Set config
      x-summary-source: derived
components:
  schemas:
    ApiLegacyViolationStatusDTO:
      type: object
      properties:
        enabled:
          type: boolean
          description: Whether legacy violations are enabled. null means inherit from the parent organization.
        enabledInParent:
          type: boolean
          description: Whether legacy violations are enabled in the parent organization. null when no parent set this value.
          readOnly: true
        inheritedFromOrganizationName:
          type: string
          description: The name of the organization the legacy status is inherited from, or null if not inherited.
          readOnly: true
        allowOverride:
          type: boolean
          description: 'Whether children (orgs and apps) are allowed to override the legacy status. Organization-only. Primitive boolean: an absent or null value in the request body is treated as false.'
        allowChange:
          type: boolean
          description: Whether the legacy status can be changed for this owner.
          readOnly: true
      description: Legacy-violation status for an application or organization.
  securitySchemes:
    BasicAuth:
      type: http
      scheme: basic
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT