Meet Toki Operator

Docs/Manage API

Design modules

Saved designs of Toki's storefront modules: create, edit and publish them, and open the theme editor to install them.

Each storefront module, such as the Wallet or Refer A Friend, can have several saved designs, which the Toki app calls variants. A design's id is the Design ID you enter in the module's block in your theme or checkout. Toki copies each saved design to your Shopify stores, and a block that points to an unpublished or deleted design shows one of the module's published designs instead, if there is one.

moduleSettings#

Lists your saved designs of Toki's storefront modules, oldest first. Pass moduleType to list one module's designs.

Arguments

  • reverseBoolean

    Reverse the sort order.

  • moduleTypeTokiModuleSettingModuleType

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom

Returns

TokiModuleSettingConnection!

A page of TokiModuleSetting in nodes, with pageInfo for the next page. Each item:

A saved design of one of Toki's storefront modules, called a variant in the Toki app.

  • idID!

    The Design ID you enter in the module's block in your theme or checkout. "" for the empty design moduleSetting returns when nothing matches.

  • moduleTypeString!

    The module the design is for, such as wallet_v2.

  • nameString!

    The design's name. moduleSettings lists unnamed designs as Variant 1, Variant 2 and so on, numbered by creation order among the module's designs; moduleSetting returns an empty name for them.

  • isPublishedBoolean!

    Whether the design is live. A storefront block that points to an unpublished design shows one of the module's published designs instead, if there is one.

  • styleVersionString!

    The style generation, v1 or v2; the Wallet picks its stylesheet by it.

  • lastModifiedFloat

    When the design was last saved, in milliseconds since the Unix epoch; pass it to moduleSettingVersionStatus to detect newer saves. null for the empty design moduleSetting returns when nothing matches.

  • settingsTokiJSON!

    The design's settings as a JSON object keyed by setting ID. Settings the design doesn't set show their default values. For customer_account_profile, this is a versioned object with version: 1 and an ordered blocks array; each block has a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows.

  • dataTokiJSON!

    The design editor's sections and setting definitions, filled in with this design's values, as JSON.

query ModuleSettings($first: Int) {
  moduleSettings(first: $first) {
    nodes {
      id
      moduleType
      name
      isPublished
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
Variables
{
  "first": 10
}
Response
{
  "data": {
    "moduleSettings": {
      "nodes": [
        {
          "id": "3ee86e08-3fe8-4f9b-a0e8-712e41e872c1",
          "moduleType": "Module type",
          "name": "Gold",
          "isPublished": true
        }
      ],
      "pageInfo": {
        "hasNextPage": true,
        "endCursor": "Y3Vyc29yOjE5"
      }
    }
  }
}
query

moduleSetting#

Returns the design with this id and moduleType. Without id, or when there is no such design, returns an empty design with id ""; without id, its data holds the module's defaults, ready for a new design.

Arguments

  • idID

    The design's ID. Omit it to start a new design.

  • moduleTypeTokiModuleSettingModuleType!Required

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom

Returns

TokiModuleSetting!

A saved design of one of Toki's storefront modules, called a variant in the Toki app.

  • idID!

    The Design ID you enter in the module's block in your theme or checkout. "" for the empty design moduleSetting returns when nothing matches.

  • moduleTypeString!

    The module the design is for, such as wallet_v2.

  • nameString!

    The design's name. moduleSettings lists unnamed designs as Variant 1, Variant 2 and so on, numbered by creation order among the module's designs; moduleSetting returns an empty name for them.

  • isPublishedBoolean!

    Whether the design is live. A storefront block that points to an unpublished design shows one of the module's published designs instead, if there is one.

  • styleVersionString!

    The style generation, v1 or v2; the Wallet picks its stylesheet by it.

  • lastModifiedFloat

    When the design was last saved, in milliseconds since the Unix epoch; pass it to moduleSettingVersionStatus to detect newer saves. null for the empty design moduleSetting returns when nothing matches.

  • settingsTokiJSON!

    The design's settings as a JSON object keyed by setting ID. Settings the design doesn't set show their default values. For customer_account_profile, this is a versioned object with version: 1 and an ordered blocks array; each block has a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows.

  • dataTokiJSON!

    The design editor's sections and setting definitions, filled in with this design's values, as JSON.

query ModuleSetting($moduleType: TokiModuleSettingModuleType!) {
  moduleSetting(moduleType: $moduleType) {
    id
    moduleType
    name
    isPublished
    styleVersion
    lastModified
    settings
  }
}
Variables
{
  "moduleType": "wallet"
}
Response
{
  "data": {
    "moduleSetting": {
      "id": "ea8da460-eb8d-45f3-ac8d-a786ed8da919",
      "moduleType": "Module type",
      "name": "Gold",
      "isPublished": true,
      "styleVersion": "Style version",
      "lastModified": 1.5,
      "settings": {}
    }
  }
}
query

moduleSettingSchema#

Lists the fields you can set in a storefront design's settings object, using the Design editor's definitions. Includes defaults, static options and visibility rules. Use path to inspect one field or block or query to search by key or label. Returns an empty list for modules with no shared editor definitions, including the separate customer_account_profile editor.

Arguments

  • moduleTypeTokiModuleSettingModuleType!Required

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom
  • pathString

    The exact setting path. For a block list, also returns its children.

  • queryString

    Case-insensitive text in a key, label, section or description.

Returns

[TokiModuleSettingSchemaPayload!]!

A setting declared by the Design editor, with its path and editing constraints.

  • pathString!

    Path in settings. For example, cards[].title is the title of each card.

  • keyString!

    The key to write in the containing settings object.

  • sectionString!

    The section's English label from the Design editor.

  • controlString!

    The editor control. For example, editor stores a string, range stores a number, checkbox stores a boolean, and blocks stores a list of objects.

  • labelString!

    The setting's English label, or its translation key when no text is available.

  • descriptionString

    The setting's help text from the editor, when provided.

  • defaultValueTokiJSON

    The scalar or list default declared for the setting. Null means the field has no explicit default.

  • translatableBoolean!

    Whether the editor supports different values by language.

  • invertedBoolean!

    Whether the editor displays the opposite of the stored boolean.

  • minFloat

    The minimum value of a range control.

  • maxFloat

    The maximum value of a range control.

  • unitString

    The unit shown by the editor, such as px.

  • maxLengthInt

    The maximum number of characters in a text control.

  • maxItemsInt

    The maximum number of blocks allowed by the editor.

  • acceptedMimeTypes[String!]!

    Explicit MIME types accepted by the image picker, if specified.

  • options[TokiModuleSettingSchemaPayloadOptions!]!

    Static choices declared for this control.

  • optionSourceString

    The editor's dynamic option source. For example, ProductsOptions refers to shop product IDs that can be looked up through products.

  • conditions[TokiModuleSettingSchemaPayloadConditions!]!

    Editor visibility rules on this field, including rules inherited from its section and parent blocks.

  • availableWhenTokiModuleSettingSchemaPayloadAvailableWhen

    An availability rule for a Design editor control.

query ModuleSettingSchema($moduleType: TokiModuleSettingModuleType!) {
  moduleSettingSchema(moduleType: $moduleType) {
    path
    key
    section
    control
    label
    description
    defaultValue
    options {
      value
      label
      disabledWith
      disabledReason
    }
  }
}
Variables
{
  "moduleType": "wallet"
}
Response
{
  "data": {
    "moduleSettingSchema": [
      {
        "path": "Path",
        "key": "Key",
        "section": "Section",
        "control": "Control",
        "label": "Summer double points",
        "description": "Earn double points on every order in July.",
        "defaultValue": {},
        "options": [
          {
            "value": {},
            "label": "Summer double points",
            "disabledWith": [
              "Disabled with"
            ],
            "disabledReason": "Duplicate account"
          }
        ]
      }
    ]
  }
}
query

moduleSettingVersionStatus#

Checks whether a design is unchanged since you loaded it. moduleSettingUpdate doesn't check this itself, so call it first to avoid overwriting someone else's changes.

Arguments

  • idID!Required

    A design's ID: the Design ID you enter in the module's block in your theme or checkout.

  • lastModifiedFloat!Required

    The design's lastModified when you loaded it.

Returns

TokiModuleSettingVersionStatusPayload!
  • isCurrentBoolean!

    false when the design has been saved again since, or no longer exists.

query ModuleSettingVersionStatus($id: ID!, $lastModified: Float!) {
  moduleSettingVersionStatus(id: $id, lastModified: $lastModified) {
    isCurrent
  }
}
Variables
{
  "id": "4faa0abc-50aa-4c4f-a1aa-0de252aa0f75",
  "lastModified": 1.5
}
Response
{
  "data": {
    "moduleSettingVersionStatus": {
      "isCurrent": true
    }
  }
}
query

designModuleAvailability#

Returns whether your plan includes the expanded wallet. Only wallet_v2 is checked: for every other module type, allowed is false whatever your plan.

Arguments

  • moduleTypeTokiModuleSettingModuleType!Required

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom

Returns

TokiDesignModuleAvailabilityPayload!
  • allowedBoolean!

    true when moduleType is wallet_v2 and your plan includes the expanded wallet.

query DesignModuleAvailability($moduleType: TokiModuleSettingModuleType!) {
  designModuleAvailability(moduleType: $moduleType) {
    allowed
  }
}
Variables
{
  "moduleType": "wallet"
}
Response
{
  "data": {
    "designModuleAvailability": {
      "allowed": true
    }
  }
}
query

moduleSettingInstallUrl#

Returns a Shopify admin link that opens the theme editor on your current theme with the module's Toki block added in a new section, or for wallet_v2 with the Toki Wallet app embed turned on. It opens the product page for wishlist_button, paid_membership_buttons, token_spending_global, redemption and reviews, and the home page otherwise. Checkout, POS and other modules without a Toki theme block get no usable link.

Arguments

  • moduleTypeTokiModuleSettingModuleType!Required

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom
  • idID

    Not used: the link is the same for every design of the module. Enter the design's id in the block's Design ID field yourself.

Returns

TokiModuleSettingInstallUrlPayload!
  • urlString!

    The link to the theme editor in your Shopify admin.

query ModuleSettingInstallUrl($moduleType: TokiModuleSettingModuleType!) {
  moduleSettingInstallUrl(moduleType: $moduleType) {
    url
  }
}
Variables
{
  "moduleType": "wallet"
}
Response
{
  "data": {
    "moduleSettingInstallUrl": {
      "url": "https://example.com/toki/webhooks"
    }
  }
}
query

publishedModuleSettings#

Lists the modules that have at least one published design, each once.

Returns

[TokiPublishedModuleSettingsPayload!]!

A module with at least one published design.

  • typeString!

    The module, such as wallet_v2.

query PublishedModuleSettings {
  publishedModuleSettings {
    type
  }
}
Response
{
  "data": {
    "publishedModuleSettings": [
      {
        "type": "default"
      }
    ]
  }
}
query

storefrontConfig#

Returns the configuration that Toki's storefront modules load on your store.

Returns

TokiStorefrontConfigPayload!
  • configTokiJSON!

    As JSON: API addresses, the storefront script version, your global module settings (language, currency format, automatic sign-in and more), and whether a Multipass token is saved and the customer authentication provider is ACTIVE. Includes referralQueryParams: the unique referral URL parameter names from active refer-a-friend activities, with tkr first.

query StorefrontConfig {
  storefrontConfig {
    config
  }
}
Response
{
  "data": {
    "storefrontConfig": {
      "config": {}
    }
  }
}
mutation

moduleSettingCreate#

Saves a new design of a module and returns its id, the Design ID you enter in the module's block in your theme or checkout. In the background, Toki then copies the design to the Toki app's metafields on each of your Shopify stores, where its theme blocks read it. Your plan must include the module; wallet_v2 needs no plan feature. Customer account profile layouts are stored without metafield synchronization.

Input

TokiModuleSettingCreateInput!
  • moduleTypeTokiModuleSettingModuleType!Required

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom
  • nameString!Required

    The design's name. Leave it empty to have it listed as Variant N.

  • styleVersionString

    The style generation the Wallet loads, v1 or v2. Omit it to keep the current value.

  • isPublishedBoolean!Required

    true to publish the design, false to keep it as a draft. Publishing doesn't unpublish the module's other designs.

  • settingsTokiJSON!Required

    The design's settings as a JSON object keyed by setting ID, like settings on the design; settings you leave out use their defaults. Use moduleSettingSchema to discover a module's setting keys and options. For wallet_v2 and wallet_v2_expanded, loginAuthorizationTypes can include customer-sso only while the customer authentication provider is ACTIVE, and while it is READY or ACTIVE it must keep a method other than shop, log-in-with-shop and customer-sso. For customer_account_profile, supply version: 1 and up to 30 blocks, each with a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows. Image URLs must use HTTPS. Profile designs are read by the customer-account API using the published Design ID, not Shopify metafields.

Returns

TokiModuleSettingCreatePayload!
  • idID!

    A design's ID: the Design ID you enter in the module's block in your theme or checkout.

mutation ModuleSettingCreate($input: TokiModuleSettingCreateInput!) {
  moduleSettingCreate(input: $input) {
    id
  }
}
Variables
{
  "input": {
    "moduleType": "wallet",
    "name": "Gold",
    "styleVersion": "Style version",
    "isPublished": true,
    "settings": {}
  }
}
Response
{
  "data": {
    "moduleSettingCreate": {
      "id": "406e9130-416e-42c3-a26e-9456436e95e9"
    }
  }
}
mutation

moduleSettingUpdate#

Replaces a design's name, published state and settings; moduleType must be the design's module. Like moduleSettingCreate, it copies the design to your Shopify stores in the background and requires a plan that includes the module. Customer account profile layouts are stored without metafield synchronization.

Input

TokiModuleSettingUpdateInput!
  • moduleTypeTokiModuleSettingModuleType!Required

    A Toki storefront module. The modules on the Design page map to these values; the less obvious ones are wallet_v2 (Wallet), wallet_v2_expanded (the Expanded Wallet theme block), hero_section (Intro Header), tiers_module (Memberships Module), customers_feedback_section (Two Block Explainer), customer_account_profile (Shopify profile layout, configured by a separate editor), zero_party_data_module (Customer Account), token_spending_global (Spending Global) and wishlist_list (Wishlist Block). claim is deprecated.

    walletwallet_v2wallet_v2_expandedvoting_activitieschallenges_moduleactivitiescreateAccountlinearTierstiersreferAFriendredemptiondiscountingzero_party_data_modulecustomer_account_profileyour_status_blockhow_it_workshero_sectiontext_with_image_sectionlogo_list_sectionfaq_sectioncustomers_feedback_sectionget_started_sectionpostPurchaseairdropsclaimgatingtoken_spending_globaltiers_moduleproduct_redemptioncheckout_ui_spending_componentcheckout_ui_free_giftsform_modulenewsletter_sign_upwishlist_buttonwishlist_listpaid_membership_buttonscheckout_ui_paid_membership_opt_out_componentpos_redemptiongift_card_cart_buttonreviewsreviews_carouselapple_pass_download_pageapple_order_download_pagecustom
  • nameString!Required

    The design's name. Leave it empty to have it listed as Variant N.

  • styleVersionString

    The style generation the Wallet loads, v1 or v2. Omit it to keep the current value.

  • isPublishedBoolean!Required

    true to publish the design, false to keep it as a draft. Publishing doesn't unpublish the module's other designs.

  • settingsTokiJSON!Required

    The design's settings as a JSON object keyed by setting ID, like settings on the design; settings you leave out use their defaults. Use moduleSettingSchema to discover a module's setting keys and options. For wallet_v2 and wallet_v2_expanded, loginAuthorizationTypes can include customer-sso only while the customer authentication provider is ACTIVE, and while it is READY or ACTIVE it must keep a method other than shop, log-in-with-shop and customer-sso. For customer_account_profile, supply version: 1 and up to 30 blocks, each with a unique id, component, width (auto, 4, 6, 8 or 12) and blockSettings. auto sizes the column to its content and occupies a 4-column slot when wrapping blocks into rows. Image URLs must use HTTPS. Profile designs are read by the customer-account API using the published Design ID, not Shopify metafields.

  • idID!Required

    A design's ID: the Design ID you enter in the module's block in your theme or checkout.

Returns

TokiModuleSettingUpdatePayload!
  • idID!

    A design's ID: the Design ID you enter in the module's block in your theme or checkout.

mutation ModuleSettingUpdate($input: TokiModuleSettingUpdateInput!) {
  moduleSettingUpdate(input: $input) {
    id
  }
}
Variables
{
  "input": {
    "moduleType": "wallet",
    "name": "Gold",
    "isPublished": true,
    "settings": {},
    "id": "eaf28c0d-e9f2-4a7a-a8f2-88e7e7f28754"
  }
}
Response
{
  "data": {
    "moduleSettingUpdate": {
      "id": "a9793fcb-a879-4e38-ab79-42f1aa79415e"
    }
  }
}
mutation

moduleSettingDelete#

Deletes a design and removes it from the Toki app's metafields on each of your Shopify stores, so blocks in your theme that point to its ID stop showing it.

Input

TokiModuleSettingDeleteInput!
  • idID!Required

    A design's ID: the Design ID you enter in the module's block in your theme or checkout.

Returns

Boolean!

true when the change was made. Anything that stops it comes back as an error.

mutation ModuleSettingDelete($input: TokiModuleSettingDeleteInput!) {
  moduleSettingDelete(input: $input)
}
Variables
{
  "input": {
    "id": "33c1ceaf-32c1-4d1c-a5c1-d1d534c1d042"
  }
}
Response
{
  "data": {
    "moduleSettingDelete": true
  }
}