DevArmor Policies API

The policies API from DevArmor — 6 operation(s) for policies.

Operations 12

GET /policies List policies across projects #
GET /projects/{project_id}/policies/{policy_id}/pr-reviews List pull request reviews for a policy #
GET /projects/{project_id}/policies List policys in a project #
POST /projects/{project_id}/policies Create a policy in a project #
GET /projects/{project_id}/policies/{resource_id} Get a policy from a project #
PUT /projects/{project_id}/policies/{resource_id} Update a policy in a project #
DELETE /projects/{project_id}/policies/{resource_id} Delete a policy from a project #
GET /projects/{project_id}/design-reviews/{design_review_id}/policies List design review policys in a project #
POST /projects/{project_id}/design-reviews/{design_review_id}/policies Create a design review policy in a project #
GET /projects/{project_id}/design-reviews/{design_review_id}/policies/{resource_id} Get a design review policy from a project #
PUT /projects/{project_id}/design-reviews/{design_review_id}/policies/{resource_id} Update a design review policy in a project #
DELETE /projects/{project_id}/design-reviews/{design_review_id}/policies/{resource_id} Delete a design review policy from a project #

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/devarmor:devarmor-policies-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

devarmor-policies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DevArmor Security Reviews Policies API
  version: 1.14.0
tags:
- name: Policies
paths:
  /policies:
    get:
      tags:
      - Policies
      summary: List policies across projects
      operationId: list_policies
      security:
      - APIGatewayAuth: []
      parameters:
      - name: project_id
        in: query
        required: false
        schema:
          anyOf:
          - type: array
            items:
              type: integer
          - type: 'null'
          description: IDs of projects to list policies from. Repeat to select multiple.
          title: Project Id
        description: IDs of projects to list policies from. Repeat to select multiple.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Policy'
                title: Response List Policies
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/policies/{policy_id}/pr-reviews:
    get:
      tags:
      - Policies
      summary: List pull request reviews for a policy
      operationId: list_policy_pr_reviews
      security:
      - APIGatewayAuth: []
      parameters:
      - name: policy_id
        in: path
        required: true
        schema:
          type: string
          title: Policy Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: page
        in: query
        required: false
        schema:
          type: integer
          minimum: 1
          description: Page number to fetch (1-based).
          default: 1
          title: Page
        description: Page number to fetch (1-based).
      - name: per_page
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Number of pull request reviews per page (max 100).
          default: 20
          title: Per Page
        description: Number of pull request reviews per page (max 100).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PullRequestReviewPage'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/policies:
    get:
      tags:
      - Policies
      summary: List policys in a project
      operationId: list_project_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Policy'
                title: Response List Project Policy
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Policies
      summary: Create a policy in a project
      operationId: create_project_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/policies/{resource_id}:
    get:
      tags:
      - Policies
      summary: Get a policy from a project
      operationId: get_project_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: string
          title: Resource Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Policies
      summary: Update a policy in a project
      operationId: update_project_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: string
          title: Resource Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Policies
      summary: Delete a policy from a project
      operationId: delete_project_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: string
          title: Resource Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: force
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Force
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyDelete'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/design-reviews/{design_review_id}/policies:
    get:
      tags:
      - Policies
      summary: List design review policys in a project
      operationId: list_project_design_review_policys
      security:
      - APIGatewayAuth: []
      parameters:
      - name: design_review_id
        in: path
        required: true
        schema:
          type: string
          title: Design Review Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Policy'
                title: Response List Project Design Review Policys
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Policies
      summary: Create a design review policy in a project
      operationId: create_project_design_review_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: design_review_id
        in: path
        required: true
        schema:
          type: string
          title: Design Review Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyCreate'
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /projects/{project_id}/design-reviews/{design_review_id}/policies/{resource_id}:
    get:
      tags:
      - Policies
      summary: Get a design review policy from a project
      operationId: get_project_design_review_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: string
          title: Resource Id
      - name: design_review_id
        in: path
        required: true
        schema:
          type: string
          title: Design Review Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Policies
      summary: Update a design review policy in a project
      operationId: update_project_design_review_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: string
          title: Resource Id
      - name: design_review_id
        in: path
        required: true
        schema:
          type: string
          title: Design Review Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PolicyUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Policy'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    delete:
      tags:
      - Policies
      summary: Delete a design review policy from a project
      operationId: delete_project_design_review_policy
      security:
      - APIGatewayAuth: []
      parameters:
      - name: resource_id
        in: path
        required: true
        schema:
          type: string
          title: Resource Id
      - name: design_review_id
        in: path
        required: true
        schema:
          type: string
          title: Design Review Id
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: force
        in: query
        required: false
        schema:
          type: boolean
          default: false
          title: Force
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PolicyDelete'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    OrganizationalFunction:
      type: string
      enum:
      - engineering
      - infrastructure
      - security
      title: OrganizationalFunction
    DesignReview:
      properties:
        symbolic_name:
          type: string
          pattern: ^[0-9a-z-]+$
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        use_memory:
          type: boolean
          title: Use Memory
          default: true
        parent_ext_task_key:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Ext Task Key
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: integer
          title: Id
        scope_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Scope Id
        memory_effective:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Memory Effective
        memory_effective_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Memory Effective Reason
      type: object
      required:
      - symbolic_name
      - title
      - id
      title: DesignReview
    Degree:
      type: string
      enum:
      - minimal
      - low
      - moderate
      - high
      - maximal
      title: Degree
    ControlStatus:
      type: string
      enum:
      - active
      - suggested
      - under_review
      - approved
      - scheduled
      - retired
      title: ControlStatus
    RepositoryBase:
      properties:
        platform:
          anyOf:
          - $ref: '#/components/schemas/RepositoryPlatform'
          - type: 'null'
        address:
          type: string
          title: Address
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
      type: object
      required:
      - address
      title: RepositoryBase
    PullRequestReview:
      properties:
        head_commit:
          type: string
          title: Head Commit
        base_branch:
          type: string
          title: Base Branch
        state:
          $ref: '#/components/schemas/PullRequestReviewState'
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: integer
          title: Id
        project_id:
          type: integer
          title: Project Id
        pull_request_id:
          type: integer
          title: Pull Request Id
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        pull_request_ref:
          type: string
          title: Pull Request Ref
        view_url:
          anyOf:
          - type: string
          - type: 'null'
          title: View Url
        violations_count:
          type: integer
          title: Violations Count
      type: object
      required:
      - head_commit
      - base_branch
      - state
      - id
      - project_id
      - pull_request_id
      - title
      - pull_request_ref
      - view_url
      - violations_count
      title: PullRequestReview
    PolicyControl:
      properties:
        symbolic_name:
          type: string
          pattern: ^[0-9a-z-]+$
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
          description: 'Three labeled paragraphs describing the security requirement, implementation and enforcement

            details, and do''s and don''ts.'
        status:
          $ref: '#/components/schemas/ControlStatus'
        priority:
          $ref: '#/components/schemas/Priority'
        include_in_mitigation_plan:
          type: boolean
          title: Include In Mitigation Plan
          description: Whether to generate tasks from this control.
        enforce_via_policy:
          type: boolean
          title: Enforce Via Policy
          description: Whether this control should be included in an enforcement policy.
        id:
          type: integer
          title: Id
        project_id:
          type: integer
          title: Project Id
        threat_model_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Threat Model Id
        threat_model_version:
          anyOf:
          - type: string
            pattern: ^\d+(\.\d+)*$
          - type: 'null'
          title: Threat Model Version
      type: object
      required:
      - symbolic_name
      - title
      - description
      - status
      - priority
      - include_in_mitigation_plan
      - enforce_via_policy
      - id
      - project_id
      - threat_model_id
      - threat_model_version
      title: PolicyControl
    PolicyRepositoryLinkBase:
      properties:
        repository_id:
          type: integer
          title: Repository Id
        repository_section_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Repository Section Id
      type: object
      required:
      - repository_id
      title: PolicyRepositoryLinkBase
      description: A repository a policy applies to, optionally narrowed to one of its subpaths.
    PolicyUpdate:
      properties:
        symbolic_name:
          type: 'null'
          title: Symbolic Name
        title:
          anyOf:
          - type: string
          - type: 'null'
          title: Title
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        test_frequency:
          anyOf:
          - $ref: '#/components/schemas/ProcessFrequency'
          - type: 'null'
        blocking:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Blocking
        status:
          anyOf:
          - $ref: '#/components/schemas/PolicyStatus'
          - type: 'null'
        snoozed_until:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Snoozed Until
        control_ids:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Control Ids
        repository_ids:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Repository Ids
        repository_links:
          anyOf:
          - items:
              $ref: '#/components/schemas/PolicyRepositoryLinkBase'
            type: array
          - type: 'null'
          title: Repository Links
        requirement_ids:
          anyOf:
          - items:
              type: integer
            type: array
          - type: 'null'
          title: Requirement Ids
        repositories:
          anyOf:
          - items:
              $ref: '#/components/schemas/RepositoryBase'
            type: array
          - type: 'null'
          title: Repositories
      type: object
      title: PolicyUpdate
    PolicyStatus:
      type: string
      enum:
      - draft
      - suggested
      - active
      - retired
      title: PolicyStatus
    RequirementType:
      type: string
      enum:
      - security
      - functional
      - non_functional
      title: RequirementType
    RepositoryPlatform:
      type: string
      enum:
      - github
      - gitlab
      title: RepositoryPlatform
    PullRequestReviewPage:
      properties:
        page:
          type: integer
          title: Page
        per_page:
          type: integer
          title: Per Page
        total_items:
          type: integer
          title: Total Items
        total_pages:
          type: integer
          title: Total Pages
        items:
          items:
            $ref: '#/components/schemas/PullRequestReview'
          type: array
          title: Items
      type: object
      required:
      - page
      - per_page
      - total_items
      - total_pages
      - items
      title: PullRequestReviewPage
    Repository:
      properties:
        platform:
          anyOf:
          - $ref: '#/components/schemas/RepositoryPlatform'
          - type: 'null'
        address:
          type: string
          title: Address
        description:
          anyOf:
          - type: string
          - type: 'null'
          title: Description
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: integer
          title: Id
        project_id:
          type: integer
          title: Project Id
        threat_model_versions:
          items:
            type: string
            pattern: ^\d+(\.\d+)*$
          type: array
          title: Threat Model Versions
        threat_model_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Threat Model Id
        design_reviews:
          items:
            $ref: '#/components/schemas/DesignReview'
          type: array
          title: Design Reviews
        url:
          type: string
          title: Url
      type: object
      required:
      - address
      - id
      - project_id
      - threat_model_versions
      - design_reviews
      - url
      title: Repository
    Requirement:
      properties:
        symbolic_name:
          type: string
          pattern: ^[0-9a-z-]+$
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        axiom:
          type: boolean
          title: Axiom
        type:
          $ref: '#/components/schemas/RequirementType'
        criticality:
          anyOf:
          - $ref: '#/components/schemas/Degree'
          - type: 'null'
        owner_function:
          anyOf:
          - $ref: '#/components/schemas/OrganizationalFunction'
          - type: 'null'
        policy_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Policy Id
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: integer
          title: Id
        design_review_id:
          type: integer
          title: Design Review Id
      type: object
      required:
      - symbolic_name
      - title
      - description
      - axiom
      - type
      - id
      - design_review_id
      title: Requirement
    PolicyPullRequestRef:
      properties:
        name:
          type: string
          title: Name
        view_url:
          type: string
          title: View Url
      type: object
      required:
      - name
      - view_url
      title: PolicyPullRequestRef
      description: Display name and link for a pull request in a policy's pre-merge or post-merge lists.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    PolicyRepositoryLink:
      properties:
        repository_id:
          type: integer
          title: Repository Id
        repository_section_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Repository Section Id
        repository_section_path:
          anyOf:
          - type: string
          - type: 'null'
          title: Repository Section Path
      type: object
      required:
      - repository_id
      title: PolicyRepositoryLink
    PolicyDelete:
      properties:
        symbolic_name:
          type: string
          pattern: ^[0-9a-z-]+$
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        test_frequency:
          $ref: '#/components/schemas/ProcessFrequency'
          default: always
        blocking:
          type: boolean
          title: Blocking
          default: false
        status:
          $ref: '#/components/schemas/PolicyStatus'
        snoozed_until:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Snoozed Until
      type: object
      required:
      - symbolic_name
      - title
      - description
      - status
      title: PolicyDelete
    ProcessFrequency:
      type: string
      enum:
      - manual
      - always
      - daily
      - weekly
      - monthly
      - quarterly
      - annually
      title: ProcessFrequency
    PolicyCreate:
      properties:
        symbolic_name:
          type: 'null'
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        test_frequency:
          $ref: '#/components/schemas/ProcessFrequency'
          default: always
        blocking:
          type: boolean
          title: Blocking
          default: false
        status:
          $ref: '#/components/schemas/PolicyStatus'
        snoozed_until:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Snoozed Until
        design_review_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Design Review Id
        threat_model_versions:
          anyOf:
          - items:
              type: string
              pattern: ^\d+(\.\d+)*$
            type: array
          - type: 'null'
          title: Threat Model Versions
        threat_model_id:
          anyOf:
          - type: integer
          - type: 'null'
          title: Threat Model Id
        control_ids:
          items:
            type: integer
          type: array
          title: Control Ids
        repository_ids:
          items:
            type: integer
          type: array
          title: Repository Ids
        repository_links:
          anyOf:
          - items:
              $ref: '#/components/schemas/PolicyRepositoryLinkBase'
            type: array
          - type: 'null'
          title: Repository Links
        requirement_ids:
          items:
            type: integer
          type: array
          title: Requirement Ids
        repositories:
          anyOf:
          - items:
              $ref: '#/components/schemas/RepositoryBase'
            type: array
          - type: 'null'
          title: Repositories
      type: object
      required:
      - title
      - description
      - status
      title: PolicyCreate
    ThinThreatModel:
      properties:
        symbolic_name:
          type: string
          pattern: ^[0-9a-z-]+$
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        use_memory:
          type: boolean
          title: Use Memory
          default: true
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: integer
          title: Id
        versions:
          items:
            type: string
            pattern: ^\d+(\.\d+)*$
          type: array
          title: Versions
        memory_effective:
          anyOf:
          - type: boolean
          - type: 'null'
          title: Memory Effective
        memory_effective_reason:
          anyOf:
          - type: string
          - type: 'null'
          title: Memory Effective Reason
      type: object
      required:
      - symbolic_name
      - title
      - description
      - id
      - versions
      title: ThinThreatModel
    Policy:
      properties:
        symbolic_name:
          type: string
          pattern: ^[0-9a-z-]+$
          title: Symbolic Name
        title:
          type: string
          title: Title
        description:
          type: string
          title: Description
        test_frequency:
          $ref: '#/components/schemas/ProcessFrequency'
          default: always
        blocking:
          type: boolean
          title: Blocking
          default: false
        status:
          $ref: '#/components/schemas/PolicyStatus'
        snoozed_until:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Snoozed Until
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        id:
          type: integer
          title: Id
        project_id:
          type: integer
          title: Project Id
        threat_model_versions:
          items:
            type: string
            pattern: ^\d+(\.\d+)*$
          type: array
          title: Threat Model Versions
        threat_model:
          anyOf:
          - $ref: '#/components/schemas/ThinThreatModel'
          - type: 'null'
        design_review:
          anyOf:
          - $ref: '#/components/schemas/DesignReview'
          - type: 'null'
        controls:
          items:
            $ref: '#/components/schemas/PolicyControl'
          type: array
          title: Controls
        repositories:
          items:
            $ref: '#/components/schemas/Repository'
          type: array
          title: Repositories
        repository_links:
          items:
            $ref: '#/components/schemas/PolicyRepositoryLink'
          type: array
          title: Repository Links
        requirements:
          items:
            $ref: '#/components/schemas/Requirement'
          type: array
          title: Requirements
        pre_merge:
          items:
            $ref: '#/components/schemas/PolicyPullRequestRef'
          type: array
          title: Pre Merge
        post_merge:
          items:
            $ref: '#/components/schemas/PolicyPullRequestRef'
          type: array
          title: Post Merge
      type: object
      required:
      - symbolic_name
      - title
      - description
      - status
      - id
      - project_id
      - threat_model_versions
      - controls
      - repositories
      - repository_links
      - requirements
      title: Policy
    Priority:
      type: string
      enum:
      - highest
      - high
      - medium
      - low
      - lowest
      title: Priority
    PullRequestReviewState:
      type: string
      enum:
      - pending
      - completed
      - aborted
      title: PullRequestReviewState
  securitySchemes:
    APIGatewayAuth:
      type: http
      scheme: bearer