chats

Update Chat Version Files

Updates the source files of a specific chat version (block) manually. This allows editing generated files directly through the API.

patch/chats/{chatId}/versions/{versionId}

Path parameters

chatIdstring required

The unique identifier of the chat containing the version to update. Provided as a path parameter.

versionIdstring required

The unique identifier of the version (block) to update. Provided as a path parameter.

Request body

Response

Success

idstring required

A unique identifier for the version.

object'version' required

Fixed value identifying this object as a version.

status'pending' | 'completed' | 'failed' required

The current status of the version generation process.

demoUrlstring

Optional URL for previewing the generated output.

screenshotUrlstring

URL to retrieve a screenshot of this version.

createdAtstring date-time required

The date and time when the version was created, in ISO 8601 format.

updatedAtstring date-time

The date and time when the version was last updated, in ISO 8601 format.

Changes