Add entity reference
add_entity_referenceAttach uploaded images or PDF/PowerPoint files as references on a VideoGen entity, and set one as the default thumbnail. Use after creating PRODUCT or ACTOR entities to assign a generation reference.
Instructions
Attach an uploaded file (vg_file_...) as a reference on an entity. Images work for every entity type. Slideshow themes may also attach a PDF or PowerPoint. Built-in entities cannot have references added. For new PRODUCT/ACTOR entities, call this right after create_entity with isDefault: true so the entity has a usable thumbnail and generation reference.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | Image file id (vg_file_...) to attach as a reference. Upload first via upload_file / create_file_upload / open_uploader. | |
| entityId | Yes | Entity id (vg_enti_...). | |
| isDefault | No | When true, make this the primary reference (thumbnail). Defaults to false. | |
| description | No | Optional description of this reference image. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name. | |
| entityId | Yes | Entity id (vg_enti_...). | |
| createdAt | Yes | Unix created-at timestamp. | |
| isBuiltIn | No | True for VideoGen catalog entities that cannot be modified. | |
| updatedAt | Yes | Unix updated-at timestamp. | |
| entityType | Yes | ACTOR, PRODUCT, VISUAL_STYLE, or SLIDESHOW_THEME. | |
| references | Yes | Attached reference images. | |
| actorConfig | No | Voice/avatar summary for ACTOR entities; null for other types. | |
| description | Yes | Description (empty when unset). |