UpdateFile
Updates an existing file asset that was uploaded to Shopify.
Note: requires write_files access scope or write_themes access scope.
EXEC UpdateFile Id='gid://shopify/MediaImage/24974406549527', OriginalSource='https://files.cdata.com/media/media/4rwcdun5/generic-data-management.png', FileName='cdata-logo-new-0.png', Description='cdata-logo-new'
Input
Name | Type | Description |
Id | String | The ID of the file to be updated. |
FileName | String | The name of the file including its extension. |
Description | String | The alternative text description of the file. |
OriginalSource | String | The source from which to update a media image or generic file. An external URL (for images only) or a staged upload URL. |
PreviewImageSource | String | The source from which to update the media preview image. May be an external URL or a staged upload URL. |
Result Set Columns
Name | Type | Description |
Success | Boolean | Indicates whether or not the operation executed successfully. |
Details | String | Any extra details on the operation's execution. |
Id | String | A globally-unique ID. |
Status | String | The status of the file. |