---
title: "Update a data entry"
method: PATCH
path: "/companies/{companyId}/data-entries/{id}"
tags: ["Data Entries"]
---

# Update a data entry

`PATCH /companies/{companyId}/data-entries/{id}`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/companies/{companyId}/data-entries/{id}`
- Auth: HTTP bearer

## Request body

- UpdateDataEntryInput
  - `entryDate` string, date
  - `source` string, nullable
  - `entryType` string, nullable
  - `amountCents` integer, nullable
  - `currency` string
  - `description` string, nullable
  - `details` object
  - `status` 'active' | 'archived'

## Response `200`

Data entry updated

- DataEntryResponse
  - `success` boolean
  - `data` DataEntry
    - `id` string, uuid
    - `companyId` string, uuid
    - `source` string, nullable
    - `entryType` string, nullable
    - `entryDate` string, date
    - `amountCents` integer, nullable
    - `currency` string
    - `description` string, nullable
    - `details` object
    - `status` 'active' | 'archived'
    - `createdBy` string, uuid, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `404`: Data entry not found
- `422`: Validation error

---

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