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

# Update the review policy

> Admins only. Omitted fields keep their stored value; the changed-item review fields are replaced as a whole list.



## OpenAPI

````yaml /openapi/customer-api.json patch /review-policy
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Flow customer API reference. Start with the [quickstart](/api/quickstart)
    and [authentication guide](/api/authentication).
  title: Customer API
  version: 1.0.0
servers:
  - description: Flow API
    url: '{baseUrl}'
    variables:
      baseUrl:
        default: https://backend.branch.flowengineering.com
security: []
tags:
  - name: Automations
  - name: Branches
  - name: Comments
  - name: Convert
  - name: Data Model
  - name: Diagrams
  - name: Entities
  - name: Files
  - name: Import
  - name: Notifications
  - name: Projects
  - name: ReqIF
  - name: ReqIF Import
  - name: Review policy
  - name: Shared Access Grants
  - name: User Groups
  - name: Users
paths:
  /review-policy:
    patch:
      tags:
        - Review policy
      summary: Update the review policy
      description: >-
        Admins only. Omitted fields keep their stored value; the changed-item
        review fields are replaced as a whole list.
      operationId: ReviewPolicyController_update
      parameters:
        - description: Workspace identifier
          in: header
          name: customer
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateReviewPolicyDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewPolicyResponseDto'
          description: ''
      security:
        - api-key: []
        - bearer: []
components:
  schemas:
    UpdateReviewPolicyDto:
      properties:
        allow_merge_override:
          type: boolean
        changed_item_review_enabled:
          type: boolean
        changed_item_review_fields:
          items:
            type: string
          type: array
        merge_override_role:
          enum:
            - admins
            - admins_and_parent_branch_owners
          type: string
        min_approvals:
          maximum: 20
          minimum: 1
          type: number
        min_approvals_enabled:
          type: boolean
      type: object
    ReviewPolicyResponseDto:
      properties:
        allow_merge_override:
          description: >-
            Whether anyone may force a merge past the review requirements with
            an audited reason.
          type: boolean
        changed_item_review_enabled:
          description: >-
            Whether "Every changed item has been reviewed by its <fields>" is
            switched on.
          type: boolean
        changed_item_review_fields:
          description: >-
            Display names of user fields, matched on every item type. A changed
            item is satisfied once one person those fields name on it has
            approved.
          items:
            type: string
          type: array
        merge_override_role:
          enum:
            - admins
            - admins_and_parent_branch_owners
          type: string
        min_approvals:
          description: >-
            Distinct approvals a branch needs before it can merge, the author
            included. Kept while the rule is off.
          type: number
        min_approvals_enabled:
          description: Whether "Require approval from at least n people" is switched on.
          type: boolean
      required:
        - min_approvals_enabled
        - min_approvals
        - changed_item_review_enabled
        - changed_item_review_fields
        - allow_merge_override
        - merge_override_role
      type: object
  securitySchemes:
    api-key:
      in: header
      name: X-API-Key
      type: apiKey
    bearer:
      bearerFormat: JWT
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.