Sonatype Legacy Violations Configuration API

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

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).

Operations 2

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/config/legacyViolations/{ownerType}/{ownerId} Get the legacy violations config for an owner · Get config #
Ask an LLM
“Is legacy violations enabled for an application or organization?”
“What legacy violations settings does an owner inherit from its parent?”
Tell an agent
Get the legacy violations config for {ownerType} {ownerId}.
Show whether legacy violations are enabled for {ownerType} {ownerId}.
PUT /api/v2/config/legacyViolations/{ownerType}/{ownerId} Update the legacy violations config for an owner · Set config #
Ask an LLM
“How do I turn legacy violations on or off for an application?”
“Can I stop children from overriding the legacy violations setting?”
Tell an agent
Set legacy violations enabled to {enabled} for {ownerType} {ownerId}.
Update the legacy violations config for {ownerType} {ownerId} with allowOverride {allowOverride}.

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-legacy-violations-configuration-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-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