---
title: "Set a client fact directly"
method: PUT
path: "/accountant/companies/{customerId}/agent/client-fact-entries/{factKey}"
tags: ["Accountant Portal"]
---

# Set a client fact directly

`PUT /accountant/companies/{customerId}/agent/client-fact-entries/{factKey}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/agent/client-fact-entries/{factKey}`
- Auth: HTTP bearer

#4387 ("Add a fact" and a direct edit). The value is stored as confirmed by the caller; the fact's earlier confirmed entry is superseded and kept. A fact with a home elsewhere gets 422 with `extensions.editIn`; an unknown fact gets 422. Human accountants assigned to the customer only; both service keys get 404. Returns the fact's row. Migration 643 (F21): the two policy facts, `revenue` (revenue recognition) and `prepaids` (prepaids and accruals), are confirmed or set only by the customer's reviewer (an assigned accountant whose firm role is reviewer) or a super-admin; anyone else gets 403 CLIENT_FACT_NEEDS_REVIEWER.

## Path parameters

- `customerId` string, uuid, required
- `factKey` string, required

## Request body

- object
  - `value` string, required
  - `source` ClientFactSourceInput, required
    - `kind` 'engagement_letter' | 'email' | 'call' | 'document' | 'bank_feed' | 'person' | 'setup', required
    - `label` string, required
    - `date` string, date, nullable: Defaults to null.

## Response `200`

Success envelope with the fact's row as the grouped read shows it (#4387)

- object
  - `success` boolean, required
  - `data` ClientFactRow, required
    - `key` 'plan' | 'close_target' | 'preparer' | 'reviewer' | 'communication_channel' | 'patient_data' | 'basis' | 'fiscal_year' | 'revenue' | 'prepaids' | 'classes' | 'owner_pay' | 'receipts' | 'fixed_assets' | 'operating_bank' | 'credit_cards' | 'payroll_provider' | 'payment_processor' | 'forwarding_address' | 'primary_contact' | 'bank_login_holder' | 'signer_tax_contact', required
    - `label` string, required
    - `value` string, nullable, required
    - `status` 'confirmed' | 'system' | 'to_fix', required: `system`: read from the fact's owner. `to_fix`: no value, from the store or from the owner.
    - `source` ClientFactSource, nullable, required: Where a value came from, e.g. "Lena Park's email" on 2026-11-06 (#4387).
      - `kind` 'engagement_letter' | 'email' | 'call' | 'document' | 'bank_feed' | 'person' | 'setup', required
      - `label` string, required
      - `date` string, date, nullable, required
    - `decidedBy` string, nullable, required: The name of the person who confirmed the value.
    - `decidedAt` string, date-time, nullable, required
    - `editIn` 'setup.plan' | 'setup.people_and_access' | 'setup.penny' | 'setup.profile' | 'agent.client_facts' | 'null', nullable, required: Where a fact with a home elsewhere is edited (a p13 Setup section, or the four-fact client facts); null for the fifteen text facts.
    - `proposal` ClientFactProposal, nullable, required
      - `id` string, uuid, required
      - `value` string, required
      - `source` ClientFactSource, required: Where a value came from, e.g. "Lena Park's email" on 2026-11-06 (#4387).
        - `kind` 'engagement_letter' | 'email' | 'call' | 'document' | 'bank_feed' | 'person' | 'setup', required
        - `label` string, required
        - `date` string, date, nullable, required
      - `quote` string, nullable, required
      - `proposedAt` string, date-time, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Resource not found
- `409`: Request conflicts with the durable onboarding state
- `422`: Validation failed (an unknown fact or a bad value), or a fact with a home elsewhere (CLIENT_FACT_OWNED_ELSEWHERE, with `extensions.editIn`)

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/agent/client-fact-entries/:factKey/put.md)

---

[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/4f4c2d34276b?raw)
