Attach Asset
attach_assetLink an existing asset to an entity by creating a linked copy, preserving the original. Specify role (cover, document, etc.) to categorize the attachment.
Instructions
Link an existing asset_id to another entity by creating a linked copy (does not move the original row). Roles: original | processed | thumbnail | cover | document | receipt | certificate | other. Legacy: pass url instead of asset_id. ($0.10; API key required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| role | No | original | cover | thumbnail | … | |
| asset_id | No | ||
| metadata | No | ||
| entity_id | Yes | ||
| asset_type | No | ||
| request_id | No | Client idempotency key (retries return original result). | |
| entity_type | Yes | ||
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset | No | ||
| message | No | ||
| asset_id | No | ||
| attached | No |