# asset

## Operations

| Method | Path | Summary | Details |
|--------|------|---------|----------|
| GET | `/admin/api/2020-01/themes/{theme_id}/assets.json` | Retrieves a single asset for a theme by its key.
          To retrieve a single asset, include asset[key]=#{asset_key} as a request parameter. For example, to retrieve the asset with a key of templates/index.liquid, the request might be /admin/themes/828155753/assets.json?asset[key]=templates/index.liquid.
          For more information on the key property, see Asset properties. | [View](../operations/deprecated-202001-get-themes-param-theme-id-assets.md) |
| PUT | `/admin/api/2020-01/themes/{theme_id}/assets.json` | Creates or updates an asset for a theme.
          In the PUT request, you can include the src or source_key property to create the asset from an existing file. | [View](../operations/deprecated-202001-update-themes-param-theme-id-assets.md) |
| DELETE | `/admin/api/2020-01/themes/{theme_id}/assets.json` | Deletes an asset from a theme. | [View](../operations/deprecated-202001-delete-themes-param-theme-id-assets.md) |
| GET | `/admin/api/2020-04/themes/{theme_id}/assets.json` | Retrieves a single asset for a theme by its key.
          To retrieve a single asset, include asset[key]=#{asset_key} as a request parameter. For example, to retrieve the asset with a key of templates/index.liquid, the request might be /admin/themes/828155753/assets.json?asset[key]=templates/index.liquid.
          For more information on the key property, see Asset properties. | [View](../operations/deprecated-202004-get-themes-param-theme-id-assets.md) |
| PUT | `/admin/api/2020-04/themes/{theme_id}/assets.json` | Creates or updates an asset for a theme.
          In the PUT request, you can include the src or source_key property to create the asset from an existing file. | [View](../operations/deprecated-202004-update-themes-param-theme-id-assets.md) |
| DELETE | `/admin/api/2020-04/themes/{theme_id}/assets.json` | Deletes an asset from a theme. | [View](../operations/deprecated-202004-delete-themes-param-theme-id-assets.md) |
| GET | `/admin/api/2020-07/themes/{theme_id}/assets.json` | Retrieves a single asset for a theme by its key.
          To retrieve a single asset, include asset[key]=#{asset_key} as a request parameter. For example, to retrieve the asset with a key of templates/index.liquid, the request might be /admin/themes/828155753/assets.json?asset[key]=templates/index.liquid.
          For more information on the key property, see Asset properties. | [View](../operations/deprecated-202007-get-themes-param-theme-id-assets.md) |
| PUT | `/admin/api/2020-07/themes/{theme_id}/assets.json` | Creates or updates an asset for a theme.
          In the PUT request, you can include the src or source_key property to create the asset from an existing file. | [View](../operations/deprecated-202007-update-themes-param-theme-id-assets.md) |
| DELETE | `/admin/api/2020-07/themes/{theme_id}/assets.json` | Deletes an asset from a theme. | [View](../operations/deprecated-202007-delete-themes-param-theme-id-assets.md) |
| GET | `/admin/api/2020-10/themes/{theme_id}/assets.json` | Retrieves a single asset for a theme by its key.
          To retrieve a single asset, include asset[key]=#{asset_key} as a request parameter. For example, to retrieve the asset with a key of templates/index.liquid, the request might be /admin/themes/828155753/assets.json?asset[key]=templates/index.liquid.
          For more information on the key property, see Asset properties. | [View](../operations/get-themes-param-theme-id-assets.md) |
| PUT | `/admin/api/2020-10/themes/{theme_id}/assets.json` | Creates or updates an asset for a theme.
          In the PUT request, you can include the src or source_key property to create the asset from an existing file. | [View](../operations/update-themes-param-theme-id-assets.md) |
| DELETE | `/admin/api/2020-10/themes/{theme_id}/assets.json` | Deletes an asset from a theme. | [View](../operations/delete-themes-param-theme-id-assets.md) |
| GET | `/admin/api/2021-01/themes/{theme_id}/assets.json` | Retrieves a single asset for a theme by its key.
          To retrieve a single asset, include asset[key]=#{asset_key} as a request parameter. For example, to retrieve the asset with a key of templates/index.liquid, the request might be /admin/themes/828155753/assets.json?asset[key]=templates/index.liquid.
          For more information on the key property, see Asset properties. | [View](../operations/deprecated-202101-get-themes-param-theme-id-assets.md) |
| PUT | `/admin/api/2021-01/themes/{theme_id}/assets.json` | Creates or updates an asset for a theme.
          In the PUT request, you can include the src or source_key property to create the asset from an existing file. | [View](../operations/deprecated-202101-update-themes-param-theme-id-assets.md) |
| DELETE | `/admin/api/2021-01/themes/{theme_id}/assets.json` | Deletes an asset from a theme. | [View](../operations/deprecated-202101-delete-themes-param-theme-id-assets.md) |
| GET | `/admin/api/unstable/themes/{theme_id}/assets.json` | Retrieves a single asset for a theme by its key.
          To retrieve a single asset, include asset[key]=#{asset_key} as a request parameter. For example, to retrieve the asset with a key of templates/index.liquid, the request might be /admin/themes/828155753/assets.json?asset[key]=templates/index.liquid.
          For more information on the key property, see Asset properties. | [View](../operations/deprecated-unstable-get-themes-param-theme-id-assets.md) |
| PUT | `/admin/api/unstable/themes/{theme_id}/assets.json` | Creates or updates an asset for a theme.
          In the PUT request, you can include the src or source_key property to create the asset from an existing file. | [View](../operations/deprecated-unstable-update-themes-param-theme-id-assets.md) |
| DELETE | `/admin/api/unstable/themes/{theme_id}/assets.json` | Deletes an asset from a theme. | [View](../operations/deprecated-unstable-delete-themes-param-theme-id-assets.md) |
