Theme Asset Data Model

Asset associated with a theme version.

This resource is a part of the Uploading Assets Workflow.

Note that the asset must already be uploaded or imported into Live Editor. This endpoint is merely for associating an existing asset with a theme, not for creating the asset itself.

Sample JSON Data

      {
        "data": {
          "type": "theme-assets",
          "id": "4e2763bc-ef12-4323-b780-907b5446c48e",
          "attributes": {
            "path": "images/logo.png",
            "created-at": "2012-04-23T18:25:43.511Z",
            "updated-at": "2012-04-23T18:25:43.511Z"
          },
          "relationships": {
            "theme": {
              "data": {
                "type": "themes",
                "id": "f90c82fd-d2ef-4230-9c2f-3f401db22d08"
              }
            },
            "asset": {
              "data": {
                "type": "assets",
                "id": "3cfdc351-64bb-47d6-a5dc-0d1da691d613"
              }
            }
          }
        }
      }

Attributes

Attribute Type Required Description
path string Yes File name of theme asset, including path from the assets folder of the theme.
created-at date Read-only Records when theme asset record was created, localized to the current logged in user’s time zone.
updated-at date Read-only Records when theme asset record last updated, localized to the current logged in user’s time zone.

Relationships

Title Type Required Description
theme object Yes Theme record being associated with the asset.
asset object Yes Asset record associated with this theme.

Related