Add library asset
add_assetImport a video, image, GIF, SVG or sound into your library from a URL or uploadId, or materialize a search_assets hit as a shared copy, and optionally set it as your default intro or outro.
Instructions
Add from exactly one source: a public url or an uploadId (video, image, GIF, SVG or sound) becomes one of your library uploads; a search_assets catalog / provider hit (provider + externalId) materializes one instance-shared copy (checksum verified, license recorded; not listed in your library). Returns { id, name, kind, mime, durationSec, duplicate, restored, owner } (the same file twice returns the existing item). setDefault on an upload makes it your default intro/outro for NEW projects only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | http(s) link to a video (MP4/MOV/WebM), image (PNG/JPG/WebP/GIF/SVG) or sound (MP3/M4A/AAC/WAV/OGG/FLAC); the server downloads it into your library (max 50 MB, 60 s) | |
| name | No | Library name (url or uploadId; default: the file name). update_asset changes it later | |
| tags | No | Search tags (lowercase words; max 20) | |
| color | No | iconify hits only: icon color as hex, e.g. #ffffff (default white) | |
| provider | No | A search_assets hit's provider (catalog or an enabled provider), together with externalId; materializes the instance-shared file instead of adding an upload | |
| uploadId | No | An existing upload id (from POST /api/upload) instead of a url | |
| externalId | No | A search_assets hit's externalId, together with provider | |
| setDefault | No | Also make it your default intro or outro for new projects | |
| imageSeconds | No | How long a still image shows as an intro/outro (1-10 s) |