---
title: "Update Custom Enum"
method: PATCH
path: "/custom-enums/{enum_id}"
tags: ["custom-enums"]
---

# Update Custom Enum

`PATCH /custom-enums/{enum_id}`

Update a custom enum's metadata.

Args:
    enum_id: Custom enum primary key.
    request: Partial update payload.
    auth: Authenticated caller.
    service: Custom-enum service.

Returns:
    CustomEnumResponse after the update.

Raises:
    HTTPException: 404 when missing; 409 on name conflict.

## Path parameters

- `enum_id` string, required

## Request body

- CustomEnumUpdate — Request model for updating a custom enum.
  - `name` string, nullable — New name for the enum
  - `values` string[], nullable — New list of allowed values
  - `description` string, nullable — New description

## Response `200`

Successful Response

- CustomEnumResponse — Response model for a single custom enum.
  - `id` string, required
  - `user_id` string, required
  - `name` string, required
  - `values` string[], required
  - `description` string, nullable
  - `created_at` string, required
  - `updated_at` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
