---
title: "A person takes over a month's writer lock with a reason (CL-097)"
method: POST
path: "/accountant/companies/{customerId}/month-end-close/writer-lock/takeovers"
tags: ["Month-End Close"]
---

# A person takes over a month's writer lock with a reason (CL-097)

`POST /accountant/companies/{customerId}/month-end-close/writer-lock/takeovers`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/companies/{customerId}/month-end-close/writer-lock/takeovers`
- Auth: HTTP bearer

Closes whichever holding of the company's month is live (a check run, a package send) as `taken_over` and opens a new holding for the caller, recording the caller and the reason (trimmed, 10 to 1,000 characters; 422 otherwise). Only the client's signer: a Reviewer or the Firm admin, and once the client has an assigned reviewer, that reviewer or the Firm admin (403 `close_step_role_required` / `close_client_reviewer_required`). The new holding lasts the default writer-lock time (2 hours) unless the taker releases it (`…/writer-lock/release`); the taker's own package send supersedes it. It does not change which writes take the lock. `previous` is null when no holding was live. 409 `WRITER_LOCK_HELD` when another writer took the month during the takeover.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `month` string, required
  - `reason` string, required

## Response `201`

The new holding and the one it closed

- object
  - `success` boolean
  - `data` object
    - `month` string, required
    - `lock` WriterLockHolding, required: One holding of a company's month (migration 632).
      - `holderKind` 'person' | 'job' | 'penny'
      - `holderId` string
      - `generation` integer
      - `acquiredAt` string, date-time
      - `expiresAt` string, date-time
      - `releasedAt` string, date-time, nullable
      - `releaseKind` 'released' | 'expired' | 'taken_over' | 'null', nullable
      - `takeoverByUserId` string, uuid, nullable
      - `takeoverReason` string, nullable
    - `previous` WriterLockHolding, nullable, required: One holding of a company's month (migration 632).
      - `holderKind` 'person' | 'job' | 'penny'
      - `holderId` string
      - `generation` integer
      - `acquiredAt` string, date-time
      - `expiresAt` string, date-time
      - `releasedAt` string, date-time, nullable
      - `releaseKind` 'released' | 'expired' | 'taken_over' | 'null', nullable
      - `takeoverByUserId` string, uuid, nullable
      - `takeoverReason` string, nullable

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `409`: Request conflicts with the durable onboarding state
- `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/month-end-close/writer-lock/takeovers/post.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)
