---
title: "Update a fileUploadRecord"
method: PUT
path: "/fileUploadRecords/{fileUploadRecordId}"
tags: ["fileUploadRecords"]
---

# Update a fileUploadRecord

`PUT /fileUploadRecords/{fileUploadRecordId}`

## Request

- Base URL: `https://api.lumahealth.io/api/v2`
- URL: `https://api.lumahealth.io/api/v2/fileUploadRecords/{fileUploadRecordId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/lumahealth/apis/rest-service/docs/fileUploadRecords/:fileUploadRecordId/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `fileUploadRecordId` string, required

## Request body

- FileUploadRecordRequest: A FileUploadRecord (full or partial) to be updated.
  - `patient` string: ID of the Patient this record applies to, if any.
  - `fileName` string: Name of the file the record was parsed from, denormalized from the related FileUpload.
  - `record` object: The parsed row of data, as extracted from the FileUpload's content.
  - `fileMapping` string: ID of the FileMapping used to interpret this record, if any.

## Response `200`

FileUploadRecord

- FileUploadRecordResponse: A FileUploadRecord represents a single parsed row of data extracted from a FileUpload (for example, one row of a bulk CSV upload). It stores the raw parsed record alongside links back to the FileUpload it came from, the FileMapping used to interpret it, and, when relevant, the patient it applies to. Staff and integrations use this resource to look up or review the individual rows that were produced while processing a file upload.
  - `_id` string: Luma's internal ID of an object.
  - `user` string: The ID of the root account user.
  - `deleted` 0 | 1: Flag for logical deletion where 1 means deleted.
  - `createdBy` string: The ID of the user who created this object.
  - `updatedBy` string: The ID of the user who updated this object.
  - `createdAt` string, date-time: The date/time when this object was created.
  - `updatedAt` string, date-time: The date/time when this object was updated.
  - `patient` string: ID of the Patient this record applies to, if any.
  - `fileUpload` string: ID of the FileUpload this record was parsed from.
  - `fileName` string: Name of the file the record was parsed from, denormalized from the related FileUpload.
  - `record` object: The parsed row of data, as extracted from the FileUpload's content.
  - `fileMapping` string: ID of the FileMapping used to interpret this record, if any.

## Other responses

- `401`: Not authenticated
- `403`: Access token does not have the required scope

## Changes

- **2026-10-17** `f19aeba84a26`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lumahealth/apis/rest-service/changes/fileUploadRecords/:fileUploadRecordId/put.md)

---

[API](https://skmtc.dev/lumahealth/apis/rest-service.md) - [All operations](https://skmtc.dev/lumahealth/apis/rest-service/llms.txt) - [OpenAPI document](https://skmtc.dev/lumahealth/apis/rest-service/revisions/f19aeba84a26?raw)
