Class: Asset

Asset(shopify)

new Asset(shopify)

Creates an Asset instance.
Parameters:
Name Type Description
shopify Shopify Reference to the Shopify instance

Members

update

Updates an asset.

Methods

create(themeId, params) → {Promise}

Creates an asset.
Parameters:
Name Type Description
themeId Number Theme ID
params Object Asset properties
Returns:
Promise that resolves with the result
Type
Promise

delete(themeId, params) → {Promise}

Deletes an asset.
Parameters:
Name Type Description
themeId Number Theme ID
params Object Query parameters
Returns:
Promise that resolves with the result
Type
Promise

get(themeId, params) → {Promise}

Get a single asset by its ID.
Parameters:
Name Type Description
themeId Number Theme ID
params Object Query parameters
Returns:
Promise that resolves with the result
Type
Promise