Dependency-Track Policy Condition API

The policyCondition API from Dependency-Track — 3 operation(s) for policycondition.

Operations 3

POST /v1/policy/condition Updates a policy condition #
DELETE /v1/policy/condition/{uuid} Deletes a policy condition from an existing policy #
PUT /v1/policy/{uuid}/condition Creates a new policy condition for an existing policy #

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-component-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-vulnerability-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-project-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-notification-rule-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-portfolio-metrics-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-project-metrics-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-workload-identity-provider-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-clone-project-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-create-workload-identity-provider-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-create-oauth-token-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-create-component-request-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/dependency-track/refs/heads/main/json-schema/dependency-track-update-workload-identity-provider-request-schema.json

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/dependency-track:dependency-track-policycondition-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

dependency-track-policycondition-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dependency Track Policy Condition API
  version: 1.0.0
  contact:
    name: The Dependency-Track Authors
    url: https://github.com/DependencyTrack/dependency-track
  license:
    name: Apache-2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  description: 'Operations tagged policyCondition across 2 of this provider''s published API definitions: dependency-track-openapi-v1.yaml, dependency-track-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /api
tags:
- name: policyCondition
paths:
  /v1/policy/condition:
    post:
      description: 'Requires permission POLICY_MANAGEMENT

        or POLICY_MANAGEMENT_UPDATE'
      operationId: updatePolicyCondition
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePolicyConditionRequest'
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyConditionResponse'
          description: The updated policy condition
        '401':
          description: Unauthorized
        '404':
          description: The UUID of the policy condition could not be found
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Updates a policy condition
      tags:
      - policyCondition
    servers:
    - url: /api
  /v1/policy/condition/{uuid}:
    delete:
      description: 'Requires permission POLICY_MANAGEMENT

        or POLICY_MANAGEMENT_UPDATE'
      operationId: deletePolicyCondition
      parameters:
      - description: The UUID of the policy condition to delete
        in: path
        name: uuid
        required: true
        schema:
          type: string
          format: uuid
      responses:
        '204':
          description: Policy condition removed successfully
        '401':
          description: Unauthorized
        '404':
          description: The UUID of the policy condition could not be found
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Deletes a policy condition from an existing policy
      tags:
      - policyCondition
    servers:
    - url: /api
  /v1/policy/{uuid}/condition:
    put:
      description: 'Requires permission POLICY_MANAGEMENT

        or POLICY_MANAGEMENT_UPDATE'
      operationId: createPolicyCondition
      parameters:
      - description: The UUID of the policy
        in: path
        name: uuid
        required: true
        schema:
          type: string
          format: uuid
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreatePolicyConditionRequest'
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyConditionResponse'
          description: The created policy condition
        '401':
          description: Unauthorized
        '404':
          description: The UUID of the policy could not be found
      security:
      - ApiKeyAuth: []
      - BearerAuth: []
      summary: Creates a new policy condition for an existing policy
      tags:
      - policyCondition
    servers:
    - url: /api
components:
  schemas:
    PolicyConditionResponse:
      type: object
      properties:
        operator:
          type: string
          description: Operator used to compare the subject to the value
          enum:
          - IS
          - IS_NOT
          - MATCHES
          - NO_MATCH
          - NUMERIC_GREATER_THAN
          - NUMERIC_LESS_THAN
          - NUMERIC_EQUAL
          - NUMERIC_NOT_EQUAL
          - NUMERIC_GREATER_THAN_OR_EQUAL
          - NUMERIC_LESSER_THAN_OR_EQUAL
          - CONTAINS_ALL
          - CONTAINS_ANY
        subject:
          type: string
          description: Subject the condition evaluates
          enum:
          - AGE
          - COORDINATES
          - CPE
          - EXPRESSION
          - LICENSE
          - LICENSE_GROUP
          - PACKAGE_URL
          - SEVERITY
          - SWID_TAGID
          - VERSION
          - COMPONENT_HASH
          - IS_INTERNAL
          - CWE
          - VULNERABILITY_ID
          - VERSION_DISTANCE
          - EPSS
        uuid:
          type: string
          format: uuid
          description: UUID of the policy condition
        value:
          type: string
          description: Value the subject is compared to
        violationType:
          type: string
          description: Violation type produced when the condition matches
          enum:
          - LICENSE
          - SECURITY
          - OPERATIONAL
      required:
      - operator
      - subject
      - uuid
      - value
    CreatePolicyConditionRequest:
      type: object
      properties:
        operator:
          type: string
          description: Operator used to compare the subject to the value
          enum:
          - IS
          - IS_NOT
          - MATCHES
          - NO_MATCH
          - NUMERIC_GREATER_THAN
          - NUMERIC_LESS_THAN
          - NUMERIC_EQUAL
          - NUMERIC_NOT_EQUAL
          - NUMERIC_GREATER_THAN_OR_EQUAL
          - NUMERIC_LESSER_THAN_OR_EQUAL
          - CONTAINS_ALL
          - CONTAINS_ANY
        subject:
          type: string
          description: Subject the condition evaluates
          enum:
          - AGE
          - COORDINATES
          - CPE
          - EXPRESSION
          - LICENSE
          - LICENSE_GROUP
          - PACKAGE_URL
          - SEVERITY
          - SWID_TAGID
          - VERSION
          - COMPONENT_HASH
          - IS_INTERNAL
          - CWE
          - VULNERABILITY_ID
          - VERSION_DISTANCE
          - EPSS
        value:
          type: string
          description: Value the subject is compared to
          minLength: 1
        violationType:
          type: string
          description: Violation type produced when the condition matches. Required for `EXPRESSION` subjects
          enum:
          - LICENSE
          - SECURITY
          - OPERATIONAL
      required:
      - operator
      - subject
      - value
    UpdatePolicyConditionRequest:
      type: object
      properties:
        operator:
          type: string
          description: Operator used to compare the subject to the value
          enum:
          - IS
          - IS_NOT
          - MATCHES
          - NO_MATCH
          - NUMERIC_GREATER_THAN
          - NUMERIC_LESS_THAN
          - NUMERIC_EQUAL
          - NUMERIC_NOT_EQUAL
          - NUMERIC_GREATER_THAN_OR_EQUAL
          - NUMERIC_LESSER_THAN_OR_EQUAL
          - CONTAINS_ALL
          - CONTAINS_ANY
        subject:
          type: string
          description: Subject the condition evaluates
          enum:
          - AGE
          - COORDINATES
          - CPE
          - EXPRESSION
          - LICENSE
          - LICENSE_GROUP
          - PACKAGE_URL
          - SEVERITY
          - SWID_TAGID
          - VERSION
          - COMPONENT_HASH
          - IS_INTERNAL
          - CWE
          - VULNERABILITY_ID
          - VERSION_DISTANCE
          - EPSS
        uuid:
          type: string
          format: uuid
          description: UUID of the policy condition to update
        value:
          type: string
          description: Value the subject is compared to
          minLength: 1
        violationType:
          type: string
          description: Violation type produced when the condition matches. Required for `EXPRESSION` subjects
          enum:
          - LICENSE
          - SECURITY
          - OPERATIONAL
      required:
      - operator
      - subject
      - uuid
      - value
  securitySchemes:
    ApiKeyAuth:
      description: Authentication via API key.
      in: header
      name: X-Api-Key
      type: apiKey
    BearerAuth:
      bearerFormat: Opaque
      description: 'Authentication via opaque server-issued session token.

        Tokens are obtained from `POST /api/v1/user/login` or

        `POST /api/v1/user/oidc/login`.'
      scheme: bearer
      type: http
x-refined-from:
- dependency-track-openapi-v1.yaml
- dependency-track-openapi.yml