assets

[cloud-only] Import published assets into the caller's library

[cloud-only] Imports the specified published assets into the caller's asset library. New DB records reference the same storage objects; no file copying occurs. Assets the caller already owns (by hash) are deduplicated. The id field on each returned AssetInfo is the caller's newly-created private asset ID, not the published asset ID supplied in the request.

post/api/assets/import

Request body

published_asset_idsstring[] required

IDs of published assets (inputs and models) to import.

share_idstring nullable

Optional. Share ID of the published workflow these assets belong to. When provided (non-null, non-empty): all published_asset_ids must belong to this share's workflow version; returns 400 if the share is not found or any asset does not belong to it. When omitted, null, or empty string: no share-scoped validation is performed and the assets are validated only against global rules (preserved for clients that have not yet adopted share_id).

Response

Successfully imported assets

Changes