Sonatype Auto Policy Waiver Exclusions API

Use this REST API to create and delete auto policy waiver exclusions.

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 3

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

POST /api/v2/autoPolicyWaiverExclusions/{ownerType}/{ownerId} Exclude a policy violation from an auto waiver · Add auto policy waive exclusion #
Ask an LLM
“How do I stop an auto policy waiver from applying to a specific policy violation?”
“Can I exclude a single scan from an auto policy waiver?”
Tell an agent
Exclude policy violation {policyViolationId} from auto waiver {autoPolicyWaiverId} for {ownerType} {ownerId}.
Exclude scan {scanId} from auto waiver {autoPolicyWaiverId} on {ownerType} {ownerId}.
GET /api/v2/autoPolicyWaiverExclusions/{ownerType}/{ownerId}/{autoPolicyWaiverId} List exclusions on an auto policy waiver · Get auto policy waiver exclusions #
Ask an LLM
“Which policy violations are excluded from an auto policy waiver?”
“Can I page through exclusions on an auto waiver?”
Tell an agent
List exclusions on auto waiver {autoPolicyWaiverId} for {ownerType} {ownerId}.
Show page {page} of exclusions for auto waiver {autoPolicyWaiverId} on {ownerType} {ownerId}, {pageSize} per page.
DELETE /api/v2/autoPolicyWaiverExclusions/{ownerType}/{ownerId}/{autoPolicyWaiverId}/{autoPolicyWaiverExclusionId} Remove an exclusion from an auto waiver · Delete auto policy waiver exclusion #
Ask an LLM
“How do I remove a policy violation exclusion from an auto waiver?”
“Can I delete one exclusion on an auto waiver?”
Tell an agent destructive · confirm first
Delete exclusion {autoPolicyWaiverExclusionId} from auto waiver {autoPolicyWaiverId} on {ownerType} {ownerId}.
Remove the {autoPolicyWaiverExclusionId} exclusion on auto waiver {autoPolicyWaiverId} for {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-auto-policy-waiver-exclusions-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-auto-policy-waiver-exclusions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Auto Policy Waiver Exclusions API
  version: '1.0'
  description: 'Operations tagged Auto Policy Waiver Exclusions 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 create and delete auto policy waiver exclusions.
  name: Auto Policy Waiver Exclusions
paths:
  /api/v2/autoPolicyWaiverExclusions/{ownerType}/{ownerId}:
    post:
      description: 'Use this method to create an auto policy waiver exclusion for a specified auto policy waiver.


        Permissions required: Waive Policy Violations'
      operationId: addAutoPolicyWaiveExclusion
      parameters:
      - description: Enter the ownerType to specify which resource type owns the auto waiver you want to apply a exclusion to. Possible values are application, organization.
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          pattern: application|organization
          type: string
      - description: Enter the corresponding id for the ownerType specified above.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiAutoPolicyWaiverExclusionRequestDTO'
        description: The request JSON can include the fields<ol><li>applicationPublicId</li><li>ownerId - ID of the application or organization which will own the auto waiver exclusion</li><li>policyViolationId - ID of the policy violation which the exclusion will apply to</li><li>autoPolicyWaiverId - ID of the auto waiver you want to apply a exclusion to</li><li>scanId - ID of the scan which the violation being waived appeared in</li><li>matchStrategy (enumeration, required) can have values EXACT_COMPONENT, ALL_VERSIONS, POLICY_VIOLATION. </li></ol>
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAutoPolicyWaiverExclusionResponseDTO'
          description: Auto policy waiver exclusion has been created successfully.
      tags:
      - Auto Policy Waiver Exclusions
      summary: Add auto policy waive exclusion
      x-summary-source: derived
  /api/v2/autoPolicyWaiverExclusions/{ownerType}/{ownerId}/{autoPolicyWaiverId}:
    get:
      description: 'Use this method to retrieve auto policy waiver exclusions for the given owner and policy waiver.


        Permissions required: View IQ Elements'
      operationId: getAutoPolicyWaiverExclusions
      parameters:
      - description: Enter the owner type.
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          pattern: application|organization
          type: string
      - description: Enter the owner id.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      - description: Enter the id of the automatic policy waiver.
        in: path
        name: autoPolicyWaiverId
        required: true
        schema:
          type: string
      - description: Enter the page.
        in: query
        name: page
        schema:
          default: 1
          format: int32
          type: integer
      - description: Enter the page size.
        in: query
        name: pageSize
        schema:
          default: 10
          format: int32
          type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiAutoPolicyWaiverExclusionResponseDTO'
                type: array
          description: Successfully retrieved the auto policy waiver exclusions.
      tags:
      - Auto Policy Waiver Exclusions
      summary: Get auto policy waiver exclusions
      x-summary-source: derived
  /api/v2/autoPolicyWaiverExclusions/{ownerType}/{ownerId}/{autoPolicyWaiverId}/{autoPolicyWaiverExclusionId}:
    delete:
      description: 'Use this method to delete an auto policy waiver exclusion, specified by the autoPolicyWaiverExclusionId.


        Permissions required: Waive Policy Violations'
      operationId: deleteAutoPolicyWaiverExclusion
      parameters:
      - description: Enter the ownerType to specify the scope. A waiver exclusion corresponding to the autoPolicyWaiverExclusionId provided and within the scope specified will be deleted.
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          pattern: application|organization
          type: string
      - description: Enter the corresponding id for the ownerType specified above.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      - description: Enter the relevant Auto Policy Waiver ID.
        in: path
        name: autoPolicyWaiverId
        required: true
        schema:
          type: string
      - description: Enter the autoPolicyWaiverId to be deleted
        in: path
        name: autoPolicyWaiverExclusionId
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Auto policy waiver exclusion has been deleted successfully.
      tags:
      - Auto Policy Waiver Exclusions
      summary: Delete auto policy waiver exclusion
      x-summary-source: derived
components:
  schemas:
    TriggerReference:
      properties:
        type:
          enum:
          - SECURITY_VULNERABILITY_REFID
          - SAST_FINDING_ID
          type: string
        value:
          type: string
      type: object
    ConstraintFact:
      properties:
        conditionFacts:
          items:
            $ref: '#/components/schemas/ConditionFact'
          type: array
        constraintId:
          type: string
        constraintName:
          type: string
        operatorName:
          type: string
      type: object
    ApiAutoPolicyWaiverExclusionRequestDTO:
      properties:
        applicationPublicId:
          type: string
        autoPolicyWaiverId:
          type: string
        matchStrategy:
          enum:
          - EXACT_COMPONENT
          - ALL_VERSIONS
          - POLICY_VIOLATION
          type: string
        ownerId:
          type: string
        policyViolationId:
          type: string
        scanId:
          type: string
      type: object
    ComponentIdentifier:
      properties:
        coordinates:
          additionalProperties:
            type: string
          type: object
        format:
          type: string
      type: object
    ConditionFact:
      properties:
        conditionIndex:
          format: int32
          type: integer
        conditionTypeId:
          type: string
        reason:
          type: string
        reference:
          $ref: '#/components/schemas/TriggerReference'
        summary:
          type: string
        triggerJson:
          type: string
      type: object
    ApiAutoPolicyWaiverExclusionResponseDTO:
      properties:
        autoPolicyWaiverExclusionId:
          type: string
        autoPolicyWaiverId:
          type: string
        componentDisplayName:
          type: string
        componentIdentifier:
          $ref: '#/components/schemas/ComponentIdentifier'
        componentMatchStrategy:
          enum:
          - EXACT_COMPONENT
          - ALL_VERSIONS
          - POLICY_VIOLATION
          type: string
        constraintFacts:
          items:
            $ref: '#/components/schemas/ConstraintFact'
          type: array
        createTime:
          format: date-time
          type: string
        creatorId:
          type: string
        creatorName:
          type: string
        hash:
          type: string
        ownerId:
          type: string
        ownerName:
          type: string
        ownerPublicId:
          type: string
        ownerType:
          type: string
        policyId:
          type: string
        policyName:
          type: string
        policyViolationId:
          type: string
        scanId:
          type: string
        threatLevel:
          format: int32
          type: integer
        vulnerabilityIdentifiers:
          type: string
      type: object
  securitySchemes:
    BasicAuth:
      scheme: basic
      type: http
    BearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http
x-refined-from:
- sonatype-lifecycle-openapi.yml
- sonatype-iq-openapi.yml