---
title: "Update a record"
method: PATCH
path: "/modules/{moduleSlug}/records/{recordId}"
tags: ["Records"]
---

# Update a record

`PATCH /modules/{moduleSlug}/records/{recordId}`

## Request

- Base URL: `https://api.getcoherence.io/v1`
- URL: `https://api.getcoherence.io/v1/modules/{moduleSlug}/records/{recordId}`
- Auth: HTTP bearer

Requires the `records:write` scope.

## Request body

- RecordUpdate
  - `displayName` string
  - `fields` object

## Response `200`

Updated record

- object
  - `record` Record
    - `recordId` string, uuid
    - `moduleId` string, uuid
    - `moduleSlug` string
    - `displayName` string
    - `fields` object
    - `createdDateTime` string, date-time
    - `updatedDateTime` string, date-time

## Other responses

- `400`: The request body failed validation.
- `401`: Authentication failed or missing.
- `404`: Resource not found.

---

[API](https://skmtc.dev/getcoherence/apis/coherence-api.md) · [All operations](https://skmtc.dev/getcoherence/apis/coherence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/getcoherence/apis/coherence-api/revisions/622d56f657b1?raw)
