---
title: "Record an is/is-not sales & marketing correction"
method: POST
path: "/companies/{companyId}/metrics/cac/classifications"
tags: ["Metrics"]
---

# Record an is/is-not sales & marketing correction

`POST /companies/{companyId}/metrics/cac/classifications`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/metrics/cac/classifications`
- Auth: HTTP bearer

Teaches the CAC tagger whether a vendor is sales & marketing spend for one concrete legal entity. Requires the founder/admin capability (company role admin or owner). Writes an entity-scoped cac_vendor_rule (confidence drifts on repeat corrections) plus a durable append-only audit event. Provide a merchant or a transactionId; the entity resolves from the entityId query parameter or the caller's single authorized entity.

## Query parameters

- `entityId` string, uuid

## Request body

- object
  - `isSm` boolean, required
  - `merchant` string
  - `transactionId` string, uuid

## Response `200`

The learned or updated entity-scoped vendor rule

- object
  - `success` boolean
  - `data` object

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Request failed validation

---

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