---
title: "Update Bexio Account"
method: PATCH
path: "/bexio-accounts/{account_id}"
tags: ["integrations"]
---

# Update Bexio Account

`PATCH /bexio-accounts/{account_id}`

## 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/bexio-accounts/{account_id}`
- Auth: none declared

Partial update of a bexio account (accountant/owner). PAT re-encrypted if supplied,
never returned. A company user may not point ``base_url`` away from bexio's API (422).

## Path parameters

- `account_id` string, required

## Headers

- `authorization` string, nullable

## Cookies

- `access_token` string, nullable

## Request body

- BexioAccountUpdate: ``PATCH /bexio-accounts/<id>`` body (admin) — partial update. ``bexio_api_token`` is write-only; supplying it re-encrypts the stored secret. Unset fields are not modified.
  - `label` string, nullable
  - `bexio_api_token` string, nullable
  - `base_url` string, nullable
  - `enabled` boolean, nullable
  - `poll_batch_cap` integer, nullable

## Response `200`

Successful Response

- BexioAccountResponse: ``GET/POST/PATCH /bexio-accounts/...`` → ``{"bexio_account": ...}``.
  - `bexio_account` BexioAccountOut, required: Serialized bexio account (no secret); includes poll-health fields.
    - `id` string, required
    - `company_id` string, required
    - `label` string, required
    - `enabled` boolean, required
    - `poll_batch_cap` integer, nullable
    - `base_url` string, required
    - `last_sync_at` string, date-time, nullable
    - `last_sync_error` string, nullable
    - `rate_limited_until` string, date-time, 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)
