> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ankra.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview vulnerability disposition policy



## OpenAPI

````yaml https://platform.ankra.app/openapi.json post /org/security/vulnerability-dispositions/preview
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://platform.ankra.app
security: []
paths:
  /org/security/vulnerability-dispositions/preview:
    post:
      tags:
        - Security
      summary: Preview vulnerability disposition policy
      operationId: preview_vulnerability_disposition
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VulnerabilityDispositionPreviewRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VulnerabilityDispositionPreviewResponse'
          description: Successful response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityDetailError'
          description: Business validation error
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityPermissionDenied'
          description: Permission or CSRF denied
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityDetailError'
          description: Organization-scoped resource not found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityDetailError'
          description: Disposition conflict
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Request validation error
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SecurityDetailError'
          description: Internal server error
components:
  schemas:
    VulnerabilityDispositionPreviewRequest:
      properties:
        disposition:
          enum:
            - acknowledged
            - accepted_risk
          type: string
        expire_when_fix_available:
          anyOf:
            - type: boolean
            - type: 'null'
        expires_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
        occurrence_id:
          format: uuid
          type: string
        policy_id:
          format: uuid
          type: string
        scope:
          default: organisation_addon
          enum:
            - organisation_addon
          type: string
      not:
        required:
          - occurrence_id
          - policy_id
      oneOf:
        - required:
            - occurrence_id
            - disposition
        - required:
            - policy_id
      type: object
    VulnerabilityDispositionPreviewResponse:
      properties:
        affected_addons:
          type: integer
        affected_clusters:
          type: integer
        affected_findings:
          type: integer
        affected_occurrences:
          type: integer
        exclusions:
          $ref: '#/components/schemas/VulnerabilityDispositionPreviewExclusions'
        observed_to_actionable_delta:
          $ref: '#/components/schemas/VulnerabilityDispositionActionableDelta'
        overlaps:
          items:
            $ref: '#/components/schemas/VulnerabilityDispositionOverlap'
          type: array
        policy_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
        selector:
          $ref: '#/components/schemas/VulnerabilityDispositionSelector'
        selector_hash:
          type: string
      required:
        - policy_id
        - selector
        - selector_hash
        - affected_occurrences
        - affected_findings
        - affected_clusters
        - affected_addons
        - exclusions
        - overlaps
        - observed_to_actionable_delta
      type: object
    SecurityDetailError:
      properties:
        detail:
          type: string
      required:
        - detail
      type: object
    SecurityPermissionDenied:
      properties:
        detail:
          enum:
            - permission_denied
          type: string
        permission:
          type: string
        scope_type:
          type: string
      required:
        - detail
        - permission
        - scope_type
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    VulnerabilityDispositionPreviewExclusions:
      properties:
        ambiguous:
          type: integer
        fix_available:
          type: integer
        unattributed:
          type: integer
      required:
        - ambiguous
        - unattributed
        - fix_available
      type: object
    VulnerabilityDispositionActionableDelta:
      properties:
        actionable_after:
          type: integer
        actionable_before:
          type: integer
        observed_after:
          type: integer
        observed_before:
          type: integer
      required:
        - observed_before
        - observed_after
        - actionable_before
        - actionable_after
      type: object
    VulnerabilityDispositionOverlap:
      properties:
        disposition:
          type: string
        kind:
          enum:
            - duplicate
            - overlap
          type: string
        policy_id:
          format: uuid
          type: string
        selector:
          $ref: '#/components/schemas/VulnerabilityDispositionSelector'
      required:
        - policy_id
        - kind
        - disposition
        - selector
      type: object
    VulnerabilityDispositionSelector:
      properties:
        addon_slug:
          type: string
        cluster_id:
          format: uuid
          type: string
        cve_id:
          type: string
        explicit_broad:
          type: boolean
        image_digest:
          type: string
        organisation_id:
          format: uuid
          type: string
        package_name:
          type: string
        package_type:
          type: string
        workload_kind:
          type: string
        workload_name:
          type: string
        workload_namespace:
          type: string
      required:
        - organisation_id
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````