---
title: "Apply Change Set"
method: POST
path: "/companies/{company_id}/change-sets/{set_id}/apply"
tags: ["accounting-settings"]
---

# Apply Change Set

`POST /companies/{company_id}/change-sets/{set_id}/apply`

## Request

- Base URL: `https://app.zeno-works.ch` (the document declares no server; this is the origin it was published from)
- URL: `https://app.zeno-works.ch/companies/{company_id}/change-sets/{set_id}/apply`
- Auth: none declared

Apply a pending change-set under a row lock — consent → atomic commit (accountant).

Scopes the set by its company. 409 if the set is no longer ``pending`` (already
resolved) or the live value drifted (the service marks it ``superseded``).

## Path parameters

- `company_id` string, required
- `set_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Response `200`

Successful Response

- ChangeSetResponse: ``POST .../change-sets/{id}/apply|discard`` → ``{"change_set": ...}``.
  - `change_set` AccountingChangeSetOut, required: A grouped, consent-gated settings change proposed by an uploaded document.
    - `id` string, required
    - `company_id` string, required
    - `document_id` string, nullable
    - `domain` 'balances' | 'vat_settings' | 'vat_rates', required: The settings domain a consent change-set proposes to modify.
    - `fiscal_year` integer, nullable
    - `proposed_snapshot_id` string, nullable
    - `current_value` object, nullable
    - `proposed_value` object, nullable
    - `summary` object, nullable
    - `status` 'pending' | 'applied' | 'discarded' | 'superseded', required: Lifecycle of a grouped consent change-set.
    - `created_at` string, date-time, required
    - `resolved_at` string, date-time, nullable
    - `resolved_by` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zeno-works/apis/zeno-api.md) · [All operations](https://skmtc.dev/zeno-works/apis/zeno-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zeno-works/apis/zeno-api/revisions/1eb93dde146c?raw)
