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

# Update an Approval Policy

> Renames an App Access Approval Policy and/or replaces its approval cycle definition. Omitted fields are left unchanged; a new definition creates a new policy version and leaves requests already in progress on their version. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml patch /v1/approval_policies/{uid}
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/approval_policies/{uid}:
    parameters:
      - name: uid
        in: path
        description: The UID of the Approval Policy
        required: true
        schema:
          type: string
    patch:
      tags:
        - Unstable
        - Approval Policy
      summary: Update an Approval Policy
      description: >-
        Renames an App Access Approval Policy and/or replaces its approval cycle
        definition. Omitted fields are left unchanged; a new definition creates
        a new policy version and leaves requests already in progress on their
        version. This endpoint may change or be removed without prior notice.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The Approval Policy name
                approval_cycle_definition:
                  type: object
                  description: >-
                    The approval rounds and steps. Required on create. On
                    update, a definition replaces the whole existing one
                    (previous versions are kept for requests already using
                    them). Approvers are referenced by UID (employees, teams,
                    Team Inboxes) or by relationship (e.g. `app_owner`). Fetch
                    `GET /v1/approval_policies/approval_cycle_definition_schema`
                    for the accepted shape.
                  properties:
                    round_definitions:
                      type: array
                      minItems: 1
                      description: >-
                        The approval rounds, run one after the other. Each round
                        has `step_definitions`.
                      items:
                        type: object
                  required:
                    - round_definitions
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: object
                    properties:
                      uid:
                        type: string
                        readOnly: true
                        description: The UID of the Approval Policy
                      name:
                        type: string
                        description: The Approval Policy name
                      default:
                        type: boolean
                        readOnly: true
                        description: >-
                          Whether this is the company default policy, used by
                          App Access Roles that do not pick one
                      approval_cycle_definition:
                        type: object
                        description: >-
                          The approval rounds run in order when an App Access
                          Request uses this policy. Each round holds steps (send
                          decisions to approvers, send reminders, auto-approve,
                          auto-reject...). See `GET
                          /v1/approval_policies/approval_cycle_definition_schema`
                          for the accepted shape.
                        properties:
                          round_definitions:
                            type: array
                            minItems: 1
                            description: >-
                              The approval rounds, run one after the other. Each
                              round has `step_definitions`.
                            items:
                              type: object
                        required:
                          - round_definitions
                        nullable: true
                      created_at:
                        type: string
                        format: date-time
                        description: >-
                          datetime formatted as ISO 8601 (e.g.
                          "2020-12-15T03:34:13.000Z")
                        readOnly: true
                      updated_at:
                        type: string
                        format: date-time
                        description: >-
                          datetime formatted as ISO 8601 (e.g.
                          "2020-12-15T03:34:13.000Z")
                        readOnly: true
                required:
                  - result
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
      security:
        - bearer: []
components:
  schemas:
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````