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

---

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