Add asset to collection
add_asset_to_collectionAdd an asset to a manual or character collection by request ID or vector ID; unresolved references are saved first, and character assets get the character tag.
Instructions
Add an asset to a manual or character collection. Provide a request ID or vector ID; unresolved references are materialized before local collection state is added. For character collections, the asset is added by applying the character tag.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Exact private account key profile label, not an authenticated provider owner ID. | |
| confirm | No | Must be true for the requested mutation, paid work or private output file. | |
| payload | No | Complete native JSON body, mutually exclusive with flat body flags and payload_file. Use schema for union bodies. | |
| vector_id | No | Vector ID to save as an asset before mutating | |
| request_id | No | Request ID to save as an asset before mutating | |
| payload_file | No | Absolute regular non-symlink private JSON file, at most 1 MiB. Cannot mix with other body inputs. | |
| collection_id | Yes | Collection ID | |
| Idempotency_Key | No | Optional idempotency key for safe request retries |