Regenerate a component
components
Regenerate a component
Regenerate the component code using AI with an optional new prompt
POST
Regenerate a component
Authorizations
YALG Developer API key. Send it in the x-api-key header from a server-side environment only.
Path Parameters
Component UUID
Example:
"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"
Body
application/json
Optional prompt override for regenerating the component
Maximum string length:
2000Example:
"Make the animation calmer and keep the same color palette"
Response
Component regenerated successfully
- Option 1
- Option 2
Generated visual component.
Component identifier.
Example:
"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"
Example:
"Metric counter"
Example:
"chart"
Generated component source code.
Example:
false
Example:
true
Example:
"2026-06-20T17:24:39.000Z"
Example:
"2026-06-20T17:24:39.000Z"