---
search:
  tags:
    - Approval Policies
    - POST
seo:
  description: >-
    Applies exactly the reviewed plan in one transaction: every change…
    Reference for the POST /api/v2/approval-policies/files/apply endpoint in the
    Anlyon API.
sidebar:
  label: Apply a policy file
  badge: POST
title: Apply a policy file
type: openapi-operation
---
Applies exactly the reviewed plan in one transaction: every change and its history entry commit together or not at all. Refuses with `409 STALE_PLAN` when the file, the environment's policies or the referenced actions changed since the plan, and with `400 POLICY_FILE_INVALID` when the plan has errors. The digest is a staleness check, not an authorization. The credential is recorded as the actor on each version.

`POST /api/v2/approval-policies/files/apply`
