admin_asset_update
Last edit: Nov 10, 2026
Updates an asset found by physical_file_path and returns it; when the new
physical_file_path differs, the file is moved in storage. Raises an error when
no such asset exists; assets stored in a private module directory cannot be updated
admin_asset_update(
asset: AssetUpdateInput!
physical_file_path: String!
): Asset
Arguments
asset (AssetUpdateInput)
Attributes to change
physical_file_path (String)
Current physical_file_path of the asset to update
Type
Asset
Static file (image, stylesheet, script, font etc.) from app/assets or a module assets directory, served from the CDN