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

GET /admin/api/2020-01/themes/{theme_id}/assets.json Read one theme file by its key (API 2020-01) · Shopify Retrieves A Single Asset For A Theme By Its Key #
Ask an LLM
“How can I read the contents of a single Liquid template in my theme on API 2020-01?”
“Can I fetch just certain attributes of a theme asset with 2020-01?”
Tell an agent
Get asset {key} from theme {theme} using 2020-01.
Show only {fields} of theme {theme} file {key}, version 2020-01.
PUT /admin/api/2020-01/themes/{theme_id}/assets.json Create or update a theme file (API 2020-01) · Shopify Creates Or Updates An Asset For A Theme #
Ask an LLM
“Can I upload an image into my theme from a URL with release 2020-01?”
“What's the way to copy an existing theme file to a new one on 2020-01?”
Tell an agent
Upload the image at {src} into theme {theme}, API 2020-01.
Duplicate theme file {source_key} within theme {theme} via 2020-01.
DELETE /admin/api/2020-01/themes/{theme_id}/assets.json Delete a file from a theme (API 2020-01) · Shopify Deletes An Asset From A Theme #
Ask an LLM
“How do I remove an unused snippet from a theme with API 2020-01?”
“Is deleting a theme asset on version 2020-01 permanent?”
Tell an agent destructive · confirm first
Delete asset {key} from theme {theme} on 2020-01.
Remove file {key} from my theme {theme}, release 2020-01.
GET /admin/api/2020-04/themes/{theme_id}/assets.json Read one theme file by its key (API 2020-04) · Shopify Retrieves A Single Asset For A Theme By Its Key #
Ask an LLM
“What's inside a specific stylesheet or template of my theme, read through 2020-04?”
“Is field filtering supported when pulling a theme asset on release 2020-04?”
Tell an agent
Fetch theme file {key} of theme {theme} via release 2020-04.
Read {key} in theme {theme} returning just {fields}, 2020-04.
PUT /admin/api/2020-04/themes/{theme_id}/assets.json Create or update a theme file (API 2020-04) · Shopify Creates Or Updates An Asset For A Theme #
Ask an LLM
“Which 2020-04 call adds or overwrites a file in a theme?”
“Can I clone one theme asset under a new key using version 2020-04?”
Tell an agent
Add an image from {src} to theme {theme} with 2020-04.
Copy asset {source_key} to a new key in theme {theme}, API 2020-04.
DELETE /admin/api/2020-04/themes/{theme_id}/assets.json Delete a file from a theme (API 2020-04) · Shopify Deletes An Asset From A Theme #
Ask an LLM
“Can I delete a leftover template from my theme through version 2020-04?”
“What happens when I erase a theme asset by key on 2020-04?”
Tell an agent destructive · confirm first
Erase theme file {key} from theme {theme} using version 2020-04.
Drop asset {key} out of theme {theme} via 2020-04.
GET /admin/api/2020-07/themes/{theme_id}/assets.json Read one theme file by its key (API 2020-07) · Shopify Retrieves A Single Asset For A Theme By Its Key #
Ask an LLM
“Where do I get the source of one theme template using 2020-07?”
“Can version 2020-07 return a theme file with only a subset of fields?”
Tell an agent
Retrieve {key} from theme {theme} on API 2020-07.
Open theme {theme} asset {key} showing {fields} only, 2020-07.
PUT /admin/api/2020-07/themes/{theme_id}/assets.json Create or update a theme file (API 2020-07) · Shopify Creates Or Updates An Asset For A Theme #
Ask an LLM
“Is there a 2020-07 endpoint to write a new asset into a theme?”
“Can I pull a remote image into theme files on API 2020-07?”
Tell an agent
Save the image from {src} as a file in theme {theme}, 2020-07.
Make a copy of theme asset {source_key} in theme {theme} on 2020-07.
DELETE /admin/api/2020-07/themes/{theme_id}/assets.json Delete a file from a theme (API 2020-07) · Shopify Deletes An Asset From A Theme #
Ask an LLM
“Which 2020-07 call removes a single file from a theme?”
“Can I clean obsolete assets out of a theme with version 2020-07?”
Tell an agent destructive · confirm first
Delete theme {theme} file {key} with API 2020-07.
Get rid of asset {key} in theme {theme}, release 2020-07.
GET /admin/api/2020-10/themes/{theme_id}/assets.json Read one theme file by its key (API 2020-10) · Shopify Retrieves A Single Asset For A Theme By Its Key #
Ask an LLM
“How do I download one asset from a theme by its key on 2020-10?”
“Which fields of a theme asset can I limit the 2020-10 response to?”
Tell an agent
Show me theme asset {key} in theme {theme}, API 2020-10.
Look up {key} in theme {theme} with just {fields} on 2020-10.
PUT /admin/api/2020-10/themes/{theme_id}/assets.json Create or update a theme file (API 2020-10) · Shopify Creates Or Updates An Asset For A Theme #
Ask an LLM
“What's the 2020-10 way to create or overwrite a file inside a theme?”
“Can I import an image by URL straight into a theme on version 2020-10?”
Tell an agent
Import the image {src} into theme {theme} via 2020-10.
Create a duplicate of asset {source_key} in theme {theme}, version 2020-10.
DELETE /admin/api/2020-10/themes/{theme_id}/assets.json Delete a file from a theme (API 2020-10) · Shopify Deletes An Asset From A Theme #
Ask an LLM
“How can I permanently remove one asset from a theme on 2020-10?”
“Does 2020-10 let me delete a theme file identified by its key?”
Tell an agent destructive · confirm first
Delete file {key} from theme {theme} through 2020-10.
Remove the {key} asset in theme {theme} using API 2020-10.
GET /admin/api/2021-01/themes/{theme_id}/assets.json Read one theme file by its key (API 2021-01) · Shopify Retrieves A Single Asset For A Theme By Its Key #
Ask an LLM
“Can I view a single theme file's value through release 2021-01?”
“What does 2021-01 return when I request a theme asset with selected fields?”
Tell an agent
Pull asset {key} of theme {theme} with version 2021-01.
Fetch {fields} for theme {theme} file {key}, 2021-01.
PUT /admin/api/2021-01/themes/{theme_id}/assets.json Create or update a theme file (API 2021-01) · Shopify Creates Or Updates An Asset For A Theme #
Ask an LLM
“How would I overwrite a template in my theme with API 2021-01?”
“Is copying an existing theme asset supported on release 2021-01?”
Tell an agent
Put the image from {src} into theme {theme}, 2021-01.
Clone theme file {source_key} inside theme {theme} with 2021-01.
DELETE /admin/api/2021-01/themes/{theme_id}/assets.json Delete a file from a theme (API 2021-01) · Shopify Deletes An Asset From A Theme #
Ask an LLM
“Can I remove one file from a theme via version 2021-01?”
“What 2021-01 request deletes a theme asset by key?”
Tell an agent destructive · confirm first
Delete {key} from theme {theme} on release 2021-01.
Wipe the theme file {key} from theme {theme}, version 2021-01.
GET /admin/api/unstable/themes/{theme_id}/assets.json Read one theme file by its key (unstable API) · Shopify Retrieves A Single Asset For A Theme By Its Key #
Ask an LLM
“Can I read a single theme asset through the unstable API version?”
“Does the unstable release support field selection on a theme file?”
Tell an agent
Get theme {theme} file {key} from the unstable API.
Return {fields} of asset {key} in theme {theme}, unstable version.
PUT /admin/api/unstable/themes/{theme_id}/assets.json Create or update a theme file (unstable API) · Shopify Creates Or Updates An Asset For A Theme #
Ask an LLM
“Is writing a new file into a theme available on the unstable release?”
“Can the unstable API upload an image into a theme from a link?”
Tell an agent
Upload {src} as an image asset in theme {theme} via the unstable API.
Duplicate {source_key} in theme {theme} on the unstable version.
DELETE /admin/api/unstable/themes/{theme_id}/assets.json Delete a file from a theme (unstable API) · Shopify Deletes An Asset From A Theme #
Ask an LLM
“How do I delete a theme file using the unstable API?”
“Can a theme asset be removed by key on the unstable release?”
Tell an agent destructive · confirm first
Delete theme asset {key} from theme {theme} with the unstable API.
Strip file {key} out of theme {theme}, unstable release.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/shopify-assets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API 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 Specification

shopify-assets-api-openapi.yml Raw ↑
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