REST API ReferenceEndpointsEntities

Add entity reference

Attach an image file as a reference for the entity. Upload the image first via POST /v1/files/upload. Returns the updated entity.

Authentication

AuthorizationBearer
API key from [app.videogen.io/developers](https://app.videogen.io/developers). The full key is only shown once when you create it.

Path parameters

entityIdstringRequired

The entity id (e.g. vg_enti_...).

Request

This endpoint expects an object.
fileIdstringRequired

The file id (e.g. vg_file_...) of an image to attach as a reference.

descriptionstringOptional
Optional description of the reference.
isDefaultbooleanOptionalDefaults to false

When true, make this the entity’s primary reference (used for its thumbnail).

Response

The updated entity
entityIdstring

The entity id (e.g. vg_enti_...).

entityTypeenum

ACTOR features a consistent character; PRODUCT features a consistent product or object; VISUAL_STYLE guides the look of generated images.

namestring
Display name.
descriptionstring
Optional description. Empty string when not set.
referenceslist of objects
Reference images attached to the entity.
createdAtinteger

Seconds since epoch (Unix timestamp) when the entity was created.

updatedAtinteger

Seconds since epoch (Unix timestamp) when the entity was last updated.

actorConfigobject or null

Voice and presenter summary for ACTOR entities. Null for VISUAL_STYLE entities.