Files
Enable public preview
Enable public preview for a file. Works for any file type. Copies the file to a permanent public URL (staticPublicPreviewSource) and, for video and audio, registers a public embed playback id (publicPlaybackId) for use with @videogen/player. If streaming playback is still processing, the endpoint polls briefly and background processing finishes creating the embed playback id. Returns the updated file.
post/v1/files/{fileId}/enable-public-preview
Path parameters
fileIdstring required
The file id (e.g. vg_file_...).
Response
File with public preview enabled
Changes
No recorded changes to this endpoint across all 1 revision of this API.