---
title: "Set who holds a source's login and 2FA (#4338 F5b)"
method: PATCH
path: "/accountant/companies/{customerId}/source-registry/{rowId}"
tags: ["Overview"]
---

# Set who holds a source's login and 2FA (#4338 F5b)

`PATCH /accountant/companies/{customerId}/source-registry/{rowId}`

## Request

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

Sets the people fields on one registry row: login owner name and email, 2FA holder name, and the usual-gap override in days (1-31). `null` clears a field; at least one field per request. The assignment is re-read before the write, and every write leaves one audit row (source_registry.people_fields_updated) with the old and new values. Human accountants only: a service key is answered 404. Cache-Control private, no-store.

## Path parameters

- `customerId` string, uuid, required
- `rowId` string, uuid, required

## Request body

- object
  - `loginOwnerName` string, nullable
  - `loginOwnerEmail` string, email, nullable
  - `twoFactorHolderName` string, nullable
  - `expectedGapDaysOverride` integer, nullable

## Response `200`

The updated row.

- object
  - `success` boolean, required
  - `data` SourceRegistryRow, required: One source registry row (#4338). The people fields are set only by a person, never the sync worker.
    - `id` string, uuid, required
    - `companyId` string, uuid, required
    - `sourceKind` 'bank_account' | 'quickbooks' | 'stripe_app', required
    - `sourceId` string, required
    - `institution` string, nullable, required
    - `accountName` string, nullable, required
    - `feedType` string, required
    - `usualGapDays` integer, required
    - `lastDataOn` string, date, nullable, required
    - `lastGoodSyncAt` string, date-time, nullable, required
    - `status` 'ok' | 'late' | 'needs_reconnect' | 'disconnected', required
    - `statusSince` string, date-time, required
    - `updatedAt` string, date-time, required
    - `loginOwnerName` string, nullable, required
    - `loginOwnerEmail` string, nullable, required
    - `twoFactorHolderName` string, nullable, required
    - `expectedGapDaysOverride` integer, nullable, required

## Other responses

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

## Changes

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

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/companies/:customerId/source-registry/:rowId/patch.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)
