---
title: "PATCH /api/admin/classification-data-fields/{id}"
method: PATCH
path: "/api/admin/classification-data-fields/{id}"
tags: ["Administration/Classification Data Fields"]
---

# PATCH /api/admin/classification-data-fields/{id}

`PATCH /api/admin/classification-data-fields/{id}`

## Request

- Base URL: `https://api.retraced.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.retraced.com/api/admin/classification-data-fields/{id}`
- Auth: none declared

Edits a data field's `title`, `description` and/or `entity` (only the keys sent are written; null or an empty string clears `title`/`description`), stamped with the caller, and answers the field as stored. An empty body changes nothing. 404 `not_found` for an unknown id; 400 for an empty or null `entity`, which legacy answered with a 500. Answers `{ data: { id, title, entity, description }, metadata }`; legacy answered the whole row as it was before the edit, merged with the body.

## Path parameters

- `id` string, required

## Request body

- object
  - `title` string, nullable
  - `description` string, nullable
  - `entity` string

## Response `200`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required: True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `title` string, nullable, required
    - `entity` string, required
    - `description` string, nullable, required

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response

## Changes

> 108 revisions in range; 2 not diffed.

- **2026-10-15** `37d9c9defc5f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/retraced/apis/api-reference/changes/api/admin/classification-data-fields/:id/patch.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) - [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/retraced/apis/api-reference/revisions/83309c4abd20?raw)
