Update Chat Version Files
Updates the source files of a specific chat version (block) manually. This allows editing generated files directly through the API.
Usage
API Signature
Request
Path Parameters
The unique identifier of the chat containing the version to update. Provided as a path parameter.
The unique identifier of the version (block) to update. Provided as a path parameter.
Body
Array of files to update with their new content
The full file path including extension (e.g., "components/test.tsx")
The new content for the file
Whether to lock or unlock the file to prevent AI from overwriting it during generation
Response
A unique identifier for the version.
Fixed value identifying this object as a version.
The current status of the version generation process.
Optional URL for previewing the generated output.
The date and time when the version was created, in ISO 8601 format.
The date and time when the version was last updated, in ISO 8601 format.
A list of files that were generated or included in this version.
Fixed value identifying this object as a file.
The name of the file, including its extension.
The full contents of the file as a raw string.
Whether the file is locked to prevent AI from overwriting it during new version generation.
Get Chat Version
Retrieves detailed information about a specific version of a chat, including all files with their content and lock status.
Resume Message
Resumes processing of a previously interrupted or incomplete message in a chat. Useful for continuing generation when a message was paused or stopped.