Sonatype Auto Policy Waivers API

Use this REST API to create, modify and retrieve auto policy waivers.

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 8

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/autoPolicyWaivers/v2/{ownerType}/{ownerId} Create a batch of auto policy waivers · Add auto policy waivers #
Ask an LLM
“How do I set up several auto policy waivers for an application at once?”
“How many auto policy waivers can an application have?”
Tell an agent
Create auto policy waivers for {ownerType} {ownerId}.
Add a batch of auto policy waivers to {ownerType} {ownerId}.
GET /api/v2/autoPolicyWaivers/v2/{ownerType}/{ownerId}/applicableAutoWaivers List auto policy waivers that apply to a scope · Get applicable auto waivers #
Ask an LLM
“Which auto policy waivers apply to an application or organization?”
“Can I see the auto waivers that would be triggered for a scope?”
Tell an agent
List applicable auto policy waivers for {ownerType} {ownerId}.
Show the auto waivers that apply to {ownerType} {ownerId}.
GET /api/v2/autoPolicyWaivers/{ownerType}/{ownerId} List all auto policy waivers for a scope · Get auto policy waivers #
Ask an LLM
“What auto policy waivers are configured for an application?”
“Can I see every auto waiver set up for an organization?”
Tell an agent
List all auto policy waivers for {ownerType} {ownerId}.
Show every auto policy waiver configured on {ownerType} {ownerId}.
POST /api/v2/autoPolicyWaivers/{ownerType}/{ownerId} Create one auto policy waiver · Add auto policy waiver #
Ask an LLM
“How do I create a single auto policy waiver for an application?”
“Can I set the threat level on one auto waiver?”
Tell an agent
Create an auto policy waiver on {ownerType} {ownerId}.
Add an auto waiver to {ownerType} {ownerId} at threat level {threatLevel}.
GET /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/status Check the status of an auto policy waiver · Get auto policy waiver status #
Ask an LLM
“Is the auto policy waiver enabled for an application?”
“What status does an auto waiver have for a scope?”
Tell an agent
Get the auto policy waiver status for {ownerType} {ownerId}.
Check whether an auto waiver is active on {ownerType} {ownerId}.
DELETE /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/{autoPolicyWaiverId} Delete an auto policy waiver · Delete auto policy waiver #
Ask an LLM
“How do I remove an auto policy waiver from an application?”
“Can I delete an auto waiver I no longer need?”
Tell an agent destructive · confirm first
Delete auto policy waiver {autoPolicyWaiverId} from {ownerType} {ownerId}.
Remove the auto waiver {autoPolicyWaiverId} on {ownerType} {ownerId}.
GET /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/{autoPolicyWaiverId} Get one auto policy waiver · Get auto policy waiver #
Ask an LLM
“What are the details of a specific auto policy waiver?”
“Can I look up one auto waiver by its ID?”
Tell an agent
Get auto policy waiver {autoPolicyWaiverId} for {ownerType} {ownerId}.
Show the details of auto waiver {autoPolicyWaiverId} on {ownerType} {ownerId}.
PUT /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/{autoPolicyWaiverId} Update an auto policy waiver · Update auto policy waiver #
Ask an LLM
“How do I change the threat level on an existing auto policy waiver?”
“Can I edit an auto waiver I already created?”
Tell an agent
Update auto policy waiver {autoPolicyWaiverId} on {ownerType} {ownerId}.
Change the threat level of auto waiver {autoPolicyWaiverId} on {ownerType} {ownerId} to {threatLevel}.

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-waivers-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-waivers-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Sonatype Auto Policy Waivers API
  version: '1.0'
  description: 'Operations tagged Auto Policy Waivers 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, modify and retrieve auto policy waivers.
  name: Auto Policy Waivers
paths:
  /api/v2/autoPolicyWaivers/v2/{ownerType}/{ownerId}:
    post:
      description: 'Use this method to create an auto policy waiver configuration. Only three configurations can exist at a time for a given application or organization. With different combinations for reachable/pathForward


        Permissions required: Waive Policy Violations'
      operationId: addAutoPolicyWaivers
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope.
        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:
              items:
                $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
              type: array
        description: The request JSON can be an array that include the fields<ol><li>threatLevel</li><li>pathForward</li><li>reachable</li></ol>
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
                type: array
          description: Auto waiver has been created successfully.
      tags:
      - Auto Policy Waivers
      summary: Add auto policy waivers
      x-summary-source: derived
  /api/v2/autoPolicyWaivers/v2/{ownerType}/{ownerId}/applicableAutoWaivers:
    get:
      description: 'Use this method to retrieve all applicable auto waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId.


        Permissions required: View IQ Elements'
      operationId: getApplicableAutoWaivers
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain applicable auto policy waivers, if any, that are within the scope specified.
        in: path
        name: ownerType
        required: true
        schema:
          enum:
          - application
          - organization
          pattern: application|organization
          type: string
      - description: Enter the corresponding id for the ownerType.
        in: path
        name: ownerId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiAutoPolicyWaiverStatusDTO'
                type: array
          description: The response contains applicable auto policy waivers for the specified ownerType and the corresponding ownerId.
      tags:
      - Auto Policy Waivers
      summary: Get applicable auto waivers
      x-summary-source: derived
  /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}:
    get:
      description: 'Use this method to retrieve waiver details for all auto policy waivers for the scope specified. You can specify the scope by using the parameters ownerType and ownerId.


        Permissions required: View IQ Elements'
      operationId: getAutoPolicyWaivers
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain waivers that are within the scope specified.
        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
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
                type: array
          description: The response contains waiver details for the specified ownerType and the corresponding ownerId, grouped by the autoPolicyWaiverId.
      tags:
      - Auto Policy Waivers
      summary: Get auto policy waivers
      x-summary-source: derived
    post:
      description: 'Use this method to create an auto policy waiver configuration. Only one configuration can exist at a time for a given application or organization.


        Permissions required: Waive Policy Violations'
      operationId: addAutoPolicyWaiver
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope.
        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/ApiAutoPolicyWaiverDTO'
        description: The request JSON can include the fields<ol><li>threatLevel</li><li>pathForward</li><li>reachable</li></ol>
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
          description: Auto waiver has been created successfully.
      tags:
      - Auto Policy Waivers
      summary: Add auto policy waiver
      x-summary-source: derived
  /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/status:
    get:
      description: 'Use this method to retrieve status details for any auto policy waiver enabled for the scope specified. You can specify the scope by using the parameters ownerType and ownerId.


        Permissions required: View IQ Elements'
      operationId: getAutoPolicyWaiverStatus
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain status details for the active auto policy waiver, if any, that is within the scope specified.
        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
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAutoPolicyWaiverStatusDTO'
          description: The response contains auto policy waiver status details for the specified ownerType and the corresponding ownerId.
      tags:
      - Auto Policy Waivers
      summary: Get auto policy waiver status
      x-summary-source: derived
  /api/v2/autoPolicyWaivers/{ownerType}/{ownerId}/{autoPolicyWaiverId}:
    delete:
      description: 'Use this method to delete an auto policy waiver, specified by the autoPolicyWaiverId.


        Permissions required: Waive Policy Violations'
      operationId: deleteAutoPolicyWaiver
      parameters:
      - description: Enter the ownerType to specify the scope. A waiver corresponding to the autoPolicyWaiverId 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 autoPolicyWaiverId to be deleted
        in: path
        name: autoPolicyWaiverId
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Auto Policy Waiver has been deleted successfully.
      tags:
      - Auto Policy Waivers
      summary: Delete auto policy waiver
      x-summary-source: derived
    get:
      description: 'Use this method to retrieve auto policy waiver details for the autoPolicyWaiverId specified.


        Permissions required: View IQ Elements'
      operationId: getAutoPolicyWaiver
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope.
        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 autoPolicyWaiverId for which you want to retrieve the auto policy waiver details.
        in: path
        name: autoPolicyWaiverId
        required: true
        schema:
          type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
          description: The response contains waiver details corresponding to the auto policy waiver id specified.
      tags:
      - Auto Policy Waivers
      summary: Get auto policy waiver
      x-summary-source: derived
    put:
      description: 'Use this method to update an auto policy waiver, specified by the autoPolicyWaiverId.


        Permissions required: Write IQ Elements'
      operationId: updateAutoPolicyWaiver
      parameters:
      - description: Enter the ownerType to specify the scope. The response will contain the details for waivers within the scope.
        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 autoPolicyWaiverId to be updated.
        in: path
        name: autoPolicyWaiverId
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
        description: The request JSON can include the fields<ol><li>autoPolicyWaiverId</li><li>threatLevel</li><li>pathForward</li><li>reachable</li></ol>
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiAutoPolicyWaiverDTO'
          description: Auto Policy Waiver has been updated successfully.
      tags:
      - Auto Policy Waivers
      summary: Update auto policy waiver
      x-summary-source: derived
components:
  schemas:
    ApiAutoPolicyWaiverStatusDTO:
      properties:
        autoPolicyWaiverId:
          type: string
        autoPolicyWaiverOwnerId:
          type: string
        autoPolicyWaiverOwnerName:
          type: string
        autoPolicyWaiverOwnerType:
          type: string
        createTime:
          format: date-time
          type: string
        hasNoPathForward:
          type: boolean
        hasNotReachable:
          type: boolean
        isAutoWaiverEnabled:
          type: boolean
        isInherited:
          type: boolean
        scopesOperatorAny:
          type: boolean
        threatLevel:
          format: int32
          type: integer
      type: object
    ApiAutoPolicyWaiverDTO:
      properties:
        autoPolicyWaiverId:
          type: string
        createTime:
          format: date-time
          type: string
        creatorId:
          type: string
        creatorName:
          type: string
        ownerId:
          type: string
        ownerName:
          type: string
        ownerType:
          type: string
        pathForward:
          type: boolean
        publicId:
          type: string
        reachability:
          type: boolean
        scopesOperatorAny:
          type: boolean
        threatLevel:
          format: int32
          type: integer
      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