---
title: "Update companies metrics enabled"
method: PATCH
path: "/accountant/companies/{customerId}/metrics-enabled"
tags: ["Accountant Portal"]
---

# Update companies metrics enabled

`PATCH /accountant/companies/{customerId}/metrics-enabled`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/metrics-enabled`
- Auth: HTTP bearer

Generated minimal contract (#1940): parameters, auth, and status codes are authoritative; see the route handler for the exact body/response shape. Enrichment tracked by the x-median-spec-stage marker.

## Request body

- object

## Response `200`

Success envelope; see the route handler for the payload shape

- object

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Go-live refused by the stored business model (#1967), before any write. `error.title` is `GO_LIVE_BUSINESS_MODEL_UNCONFIRMED` when the model is still the stored software default (an accountant confirms it by picking the model through PATCH .../business-model, the same value included), or `GO_LIVE_BUSINESS_MODEL_UNSET` when the stored model is missing or unregistered. `error.extensions` carries `businessModel` and `businessModelSource`. Re-locking (`metricsEnabled: false`) is never refused.

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) · [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) · [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/20090ea32b0d?raw)
