---
title: "Update enrichment"
method: PATCH
path: "/enrichments/{id}"
tags: ["enrichments"]
---

# Update enrichment

`PATCH /enrichments/{id}`

Update an enrichment's content

## Path parameters

- `id` integer, required

## Request body

- DtoEnrichmentUpdateRequest
  - `data` DtoEnrichmentUpdateData
    - `attributes` DtoEnrichmentUpdateAttributes
      - `content` string
    - `type` string

## Response `200`

OK

- DtoEnrichmentJSONAPIResponse
  - `data` DtoEnrichmentData
    - `attributes` DtoEnrichmentAttributes
      - `content` string
      - `created_at` string
      - `end_line` integer
      - `page` integer
      - `start_line` integer
      - `subtype` string
      - `type` string
      - `updated_at` string
    - `id` string
    - `type` string

## Other responses

- `404` — Not Found
- `500` — Internal Server Error

## Changes

> 14 revisions in range; 1 could not be searched.

- **2026-04-06** `de2135f74990` — 1 info
  - added the optional property `data/attributes/page` to the response with the `200` status
- **2026-02-27** `f32956e4ed89` — 2 info
  - added the optional property `data/attributes/end_line` to the response with the `200` status
  - added the optional property `data/attributes/start_line` to the response with the `200` status
- **2026-02-19** `41466db231c5` — 3 warning
  - removed the optional property `data/attributes/end_line` from the response with the `200` status
  - removed the optional property `data/attributes/page` from the response with the `200` status
  - removed the optional property `data/attributes/start_line` from the response with the `200` status

[Change history](https://skmtc.dev/helixml/apis/kodit-api/changes/enrichments/:id/patch.md)

---

[API](https://skmtc.dev/helixml/apis/kodit-api.md) · [All operations](https://skmtc.dev/helixml/apis/kodit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/helixml/kodit-api/revisions/3f72fa58f3fb/schema)
