---
title: "A person releases the writer-lock holding they took over (CL-097)"
method: POST
path: "/accountant/companies/{customerId}/month-end-close/writer-lock/release"
tags: ["Month-End Close"]
---

# A person releases the writer-lock holding they took over (CL-097)

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

## Request

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

Closes the caller's own live holding of the company's month (`holder_kind` person, `holder_id` = the caller) at the stated generation, as `released`. Anything else (another person's holding, a job's or Penny's, a stale generation, nothing live) answers 409 `WRITER_LOCK_NOT_HELD` and changes nothing. Refused for every API key and the service token. The taker's own package send also supersedes their takeover without a release, so a takeover never locks its taker out of sending the package.

## Path parameters

- `customerId` string, uuid, required

## Request body

- object
  - `month` string, required
  - `generation` integer, required

## Response `204`

Released

## 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/release/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)
