CreateFile
Creates file assets from an external URL or finalizes previously staged uploads.
Input
| Name | Type | Description |
| OriginalSource | String | The source URL of the file. Supports external URLs for images or staged upload URLs. |
| FileName | String | The name to assign to the file. If not provided, the filename from the OriginalSource is used. |
| Description | String | The alternative text description of the file, used for accessibility. |
| ContentType | String | The type of file. If omitted, Shopify attempts to detect the content type during processing. |
| DuplicateResolutionMode | String | Specifies how to handle cases where the filename is already in use.
The allowed values are APPEND_UUID, RAISE_ERROR, REPLACE. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the request completed successfully. |
| Details | String | Additional information or error details about the request outcome. |
| Id | String | The globally unique identifier of the created file. |
| Status | String | The current status of the file, such as uploaded or failed. |