---
title: "Mark Account Intentional"
method: POST
path: "/companies/{company_id}/ledger-accounts/{account_number}/mark-intentional"
tags: ["accounting-settings"]
---

# Mark Account Intentional

`POST /companies/{company_id}/ledger-accounts/{account_number}/mark-intentional`

## 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}/ledger-accounts/{account_number}/mark-intentional`
- Auth: none declared

Confirm an account's type is intentional (accountant).

Sets ``is_intentional=True`` on the account's ledger row in the **open** fiscal year that
carries the code (one row; ``rows_updated`` is 1) so the accountant skips
``ACCOUNT_TYPE_INCONSISTENT`` for it. Idempotent; 404 if no open fiscal year carries the
account. ``body.note`` is accepted (optional justification).

## Path parameters

- `company_id` string, required
- `account_number` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- MarkIntentionalIn: ``POST /companies/{id}/ledger-accounts/{number}/mark-intentional`` body (admin). Confirms the account's type is intentional despite its number range (suppresses the accountant ``ACCOUNT_TYPE_INCONSISTENT`` check). ``note`` is an optional free-text justification (accepted, not yet persisted).
  - `note` string, nullable

## Response `200`

Successful Response

- MarkIntentionalOut: Result of marking an account intentional: ONE ledger row, in the open fiscal year that carries the code (the working year — ZET-375), so ``rows_updated`` is 1. Other years' rows for the same code are not touched.
  - `account_number` string, required
  - `rows_updated` integer, required

## 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)
