---
title: "Custom Component Update"
method: POST
path: "/api/v1/custom_component/update"
tags: ["Base"]
---

# Custom Component Update

`POST /api/v1/custom_component/update`

Update an existing custom component with new code and configuration.<br><br>Processes the provided code and template updates, applies parameter changes (including those loaded from the<br>database), updates the component's build configuration, and validates outputs. Returns the updated component node as<br>a JSON-serializable dictionary.<br><br>Raises:<br>    HTTPException: If an error occurs during component building or updating.<br>    SerializationError: If serialization of the updated component node fails.

## Request body

- UpdateCustomComponentRequest
  - `code` string, required
  - `frontend_node` object, nullable
  - `field` string, required
  - `field_value` union
    - string
    - integer
    - number
    - boolean
    - object
    - unknown[]
      - unknown
  - `template` object, required
  - `tool_mode` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2025-10-16** `9bd3e81318d7` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v1/custom_component/update/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/b0ee9ddb8d9f/schema)
