Shopify Assets API
The Assets API from Shopify — 6 operation(s) for assets.
Operations 18
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
The Assets API from Shopify — 6 operation(s) for assets.
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/shopify:shopify-assets-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Shopify Assets API
description: Explore Shopify's API reference and templating documentation. Shopify provides a range of software tools, app templates, example apps, and libraries to accelerate your development process. The Admin API lets you build apps and integrations that extend and enhance the Shopify admin.
version: 2020-10
tags:
- name: Assets
paths:
/admin/api/2020-01/themes/{theme_id}/assets.json:
get:
summary: Shopify Retrieves A Single Asset For A Theme By Its Key
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#show-2020-01
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: fields
description: Show only certain fields, specified by a comma-separated list of field names
schema: {}
required: false
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202001_get_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
put:
requestBody:
content:
application/json:
schema: {}
examples:
example1:
value:
asset:
key: templates/index.liquid
value: <img src='backsoon-postit.png'><p>We are busy updating the store for you and will be back within the hour.</p>
summary: Change an existing Liquid template's value
example2:
value:
asset:
key: assets/empty.gif
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
'
summary: Create an image asset by providing a base64-encoded attachment
example3:
value:
asset:
key: assets/bg-body.gif
src: http://apple.com/new_bg.gif
summary: Create an image asset by providing a source URL from which to upload the image
example4:
value:
asset:
key: layout/alternate.liquid
source_key: layout/theme.liquid
summary: Duplicate an existing asset by providing a source key
summary: Shopify Creates Or Updates An Asset For A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-01
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: src
description: The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
schema: {}
required: false
- in: query
name: source_key
description: The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
schema: {}
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202001_update_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
delete:
summary: Shopify Deletes An Asset From A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#destroy-2020-01
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202001_delete_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
/admin/api/2020-04/themes/{theme_id}/assets.json:
get:
summary: Shopify Retrieves A Single Asset For A Theme By Its Key
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#show-2020-04
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: fields
description: Show only certain fields, specified by a comma-separated list of field names
schema: {}
required: false
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202004_get_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
put:
requestBody:
content:
application/json:
schema: {}
examples:
example1:
value:
asset:
key: templates/index.liquid
value: <img src='backsoon-postit.png'><p>We are busy updating the store for you and will be back within the hour.</p>
summary: Change an existing Liquid template's value
example2:
value:
asset:
key: assets/empty.gif
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
'
summary: Create an image asset by providing a base64-encoded attachment
example3:
value:
asset:
key: assets/bg-body.gif
src: http://apple.com/new_bg.gif
summary: Create an image asset by providing a source URL from which to upload the image
example4:
value:
asset:
key: layout/alternate.liquid
source_key: layout/theme.liquid
summary: Duplicate an existing asset by providing a source key
summary: Shopify Creates Or Updates An Asset For A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-04
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: src
description: The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
schema: {}
required: false
- in: query
name: source_key
description: The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
schema: {}
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202004_update_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
delete:
summary: Shopify Deletes An Asset From A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#destroy-2020-04
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202004_delete_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
/admin/api/2020-07/themes/{theme_id}/assets.json:
get:
summary: Shopify Retrieves A Single Asset For A Theme By Its Key
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#show-2020-07
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: fields
description: Show only certain fields, specified by a comma-separated list of field names
schema: {}
required: false
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202007_get_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
put:
requestBody:
content:
application/json:
schema: {}
examples:
example1:
value:
asset:
key: templates/index.liquid
value: <img src='backsoon-postit.png'><p>We are busy updating the store for you and will be back within the hour.</p>
summary: Change an existing Liquid template's value
example2:
value:
asset:
key: assets/empty.gif
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
'
summary: Create an image asset by providing a base64-encoded attachment
example3:
value:
asset:
key: assets/bg-body.gif
src: http://apple.com/new_bg.gif
summary: Create an image asset by providing a source URL from which to upload the image
example4:
value:
asset:
key: layout/alternate.liquid
source_key: layout/theme.liquid
summary: Duplicate an existing asset by providing a source key
summary: Shopify Creates Or Updates An Asset For A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-07
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: src
description: The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
schema: {}
required: false
- in: query
name: source_key
description: The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
schema: {}
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202007_update_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
delete:
summary: Shopify Deletes An Asset From A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#destroy-2020-07
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202007_delete_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
/admin/api/2020-10/themes/{theme_id}/assets.json:
get:
summary: Shopify Retrieves A Single Asset For A Theme By Its Key
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#show-2020-10
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: fields
description: Show only certain fields, specified by a comma-separated list of field names
schema: {}
required: false
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: get_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
put:
requestBody:
content:
application/json:
schema: {}
examples:
example1:
value:
asset:
key: templates/index.liquid
value: <img src='backsoon-postit.png'><p>We are busy updating the store for you and will be back within the hour.</p>
summary: Change an existing Liquid template's value
example2:
value:
asset:
key: assets/empty.gif
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
'
summary: Create an image asset by providing a base64-encoded attachment
example3:
value:
asset:
key: assets/bg-body.gif
src: http://apple.com/new_bg.gif
summary: Create an image asset by providing a source URL from which to upload the image
example4:
value:
asset:
key: layout/alternate.liquid
source_key: layout/theme.liquid
summary: Duplicate an existing asset by providing a source key
summary: Shopify Creates Or Updates An Asset For A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2020-10
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: src
description: The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
schema: {}
required: false
- in: query
name: source_key
description: The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
schema: {}
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: update_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
delete:
summary: Shopify Deletes An Asset From A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#destroy-2020-10
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: delete_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
/admin/api/2021-01/themes/{theme_id}/assets.json:
get:
summary: Shopify Retrieves A Single Asset For A Theme By Its Key
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#show-2021-01
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: fields
description: Show only certain fields, specified by a comma-separated list of field names
schema: {}
required: false
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202101_get_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
put:
requestBody:
content:
application/json:
schema: {}
examples:
example1:
value:
asset:
key: templates/index.liquid
value: <img src='backsoon-postit.png'><p>We are busy updating the store for you and will be back within the hour.</p>
summary: Change an existing Liquid template's value
example2:
value:
asset:
key: assets/empty.gif
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
'
summary: Create an image asset by providing a base64-encoded attachment
example3:
value:
asset:
key: assets/bg-body.gif
src: http://apple.com/new_bg.gif
summary: Create an image asset by providing a source URL from which to upload the image
example4:
value:
asset:
key: layout/alternate.liquid
source_key: layout/theme.liquid
summary: Duplicate an existing asset by providing a source key
summary: Shopify Creates Or Updates An Asset For A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-2021-01
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: src
description: The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
schema: {}
required: false
- in: query
name: source_key
description: The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
schema: {}
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202101_update_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
delete:
summary: Shopify Deletes An Asset From A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#destroy-2021-01
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_202101_delete_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
/admin/api/unstable/themes/{theme_id}/assets.json:
get:
summary: Shopify Retrieves A Single Asset For A Theme By Its Key
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#show-unstable
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: fields
description: Show only certain fields, specified by a comma-separated list of field names
schema: {}
required: false
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_unstable_get_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
put:
requestBody:
content:
application/json:
schema: {}
examples:
example1:
value:
asset:
key: templates/index.liquid
value: <img src='backsoon-postit.png'><p>We are busy updating the store for you and will be back within the hour.</p>
summary: Change an existing Liquid template's value
example2:
value:
asset:
key: assets/empty.gif
attachment: 'R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==
'
summary: Create an image asset by providing a base64-encoded attachment
example3:
value:
asset:
key: assets/bg-body.gif
src: http://apple.com/new_bg.gif
summary: Create an image asset by providing a source URL from which to upload the image
example4:
value:
asset:
key: layout/alternate.liquid
source_key: layout/theme.liquid
summary: Duplicate an existing asset by providing a source key
summary: Shopify Creates Or Updates An Asset For A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#update-unstable
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: src
description: The source URL of an image. Include in the body of the PUT request to upload the image to Shopify.
schema: {}
required: false
- in: query
name: source_key
description: The path within the theme to an existing asset. Include in the body of the PUT request to create a duplicate asset.
schema: {}
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_unstable_update_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true
delete:
summary: Shopify Deletes An Asset From A Theme
description: https://shopify.dev/docs/admin-api/rest/reference/online-store/asset#destroy-unstable
parameters:
- in: path
name: theme_id
required: true
schema:
type: string
description: theme_id
- in: query
name: asset[key]
schema:
type: string
description: asset[key]
required: false
tags:
- Assets
responses:
'200':
description: ''
operationId: deprecated_unstable_delete_themes_param_theme_id_assets
x-api-evangelist-processing:
PascalCaseOperationSummaries: true
ChooseTags: true