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

# Apply Stored Changeset

> Execute an approved proposal through the guarded write path.

Executes an `APPROVED` proposal through the **same** guarded, atomic write path as a [direct apply](/docs/developers/api-reference/instructions/apply-changeset), re-validated against current revisions. If the workspace drifted since submission, nothing is written and the proposal records `CONFLICTED` with structured conflicts. An already-`APPLIED` proposal replays idempotently; applying a proposal that is not `APPROVED` is a `409` error envelope. Honors the `Idempotency-Key` header.

**Requirements:** `instructions:write` + workspace `EDITOR` or `OWNER` + a verified (claimed) account.

## Request

<ParamField path="changesetId" type="string" required>
  The approved proposal. No body — the stored operations are what gets applied.
</ParamField>

## Response

<ResponseField name="changeset" type="object">
  The updated record: `APPLIED` on success, `CONFLICTED` on drift.
</ResponseField>

<ResponseField name="application" type="object">
  The apply result — same shape as [Apply Changeset](/docs/developers/api-reference/instructions/apply-changeset): `{applied, changesetId, idempotentReplay, manualRevisions, pageRevisions, conflicts}`.
</ResponseField>
