Skip to main content

Custom Component Update

Update an existing custom component with new code and configuration.

Processes the provided code and template updates, applies parameter changes (including those loaded from the database), updates the component's build configuration, and validates outputs. Returns the updated component node as a JSON-serializable dictionary.

Raises: HTTPException: If an error occurs during component building or updating. SerializationError: If serialization of the updated component node fails.

Request Body REQUIRED
code Code REQUIRED
frontend_node Frontend Node
field Field REQUIRED
field_value Field Value
template object REQUIRED
tool_mode Tool Mode
Responses
200

Successful Response

Schema OPTIONAL
undefined
422

Validation Error

Schema OPTIONAL
detail object[] OPTIONAL
loc undefined[]
msg Message
type Error Type
Search