Custom Component Update
Update a custom component with the provided code request.
This endpoint generates the CustomComponentFrontendNode normally but then runs the update_build_config method
on the latest version of the template.
This ensures that every time it runs, it has the latest version of the template.
Args: code_request (CustomComponentRequest): The code request containing the updated code for the custom component. user (User, optional): The user making the request. Defaults to the current active user.
Returns: dict: The updated custom component node.
Raises: HTTPException: If there's an error building or updating the component SerializationError: If there's an error serializing the component to JSON
| 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 | |||||
|---|---|---|---|---|---|
200Successful Response
| |||||
422Validation Error
|