create_file
Import files from URLs into your Shopify store as assets. Supports images, videos, 3D models, and generic files with optional alt text and duplicate handling.
Instructions
Create a file asset in the store from an external URL or a staged upload URL. Supports images, videos, 3D models, and generic files. Requires write_files access scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| original_source | Yes | Publicly accessible URL or staged upload URL of the file to import. | |
| alt | No | Alt text for accessibility. | |
| content_type | No | Type of file content. Shopify will infer from URL if omitted. | |
| duplicate_resolution_mode | No | How to handle duplicate filenames. Default: APPEND_UUID. |