marketplaceUpdateTheme

This mutation updates the marketplace theme.

Sample Mutation

Perform an update on a marketplace that has a theme of dark:

mutation{
  marketplaceUpdateTheme(id: "d15b1b02-3c87-434d-a7fb-004b27415fbc" theme: "dark"){
    id
    name
    organizationID
    theme
    collections{
      id
      marketplaceID
      name
      slug
    }
  }
}
{
  "data": {
    "marketplaceUpdateTheme": {
      "id": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
      "name": "metaverso",
      "organizationID": "a1dc174d-abf4-47d3-be3c-9281c6eba456",
      "theme": "dark",
      "collections": [
        {
          "id": "f2cd1160-1c99-4a27-b948-d48a60ba2e11",
          "marketplaceID": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
          "name": "metaverso",
          "slug": "metaverso"
        },
        {
          "id": "b53a4163-ffce-455b-a72e-1a2106c90fbc",
          "marketplaceID": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
          "name": "test metaverso",
          "slug": "test-metaverso"
        },
        {
          "id": "e6b4737b-ba44-4aa3-a948-ee6b1210df05",
          "marketplaceID": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
          "name": "Test",
          "slug": "test"
        },
        {
          "id": "09cd4f24-2586-4fa4-9d13-a3e8a9f21636",
          "marketplaceID": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
          "name": "wer",
          "slug": "wer"
        },
        {
          "id": "46bbc16c-17e8-4510-8131-18b89c3832fb",
          "marketplaceID": "d15b1b02-3c87-434d-a7fb-004b27415fbc",
          "name": "Metaverso Test",
          "slug": "metaverso-test"
        }
      ]
    }
  }
}

Argument

Name

Type

Description

Required

id

String

The marketplace updated theme ID.

Yes

theme

String

Description of the theme.

Yes

Returns

Name

Type

Description

Marketplace

Object

Contains all the information from Marketplace such as the marketplace ID, the marketplace name, organization ID, theme, collections, and tokens.

Example

Create an update on a marketplace theme using marketplace ID: