Support

createListTree

View as Markdown

Create a new list tree.

mutation

Requires commerce.product:write.

Create a new list tree.

Required headers

HeaderRequiredDescription
x-store-idYesID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: extensions.code: "UNAUTHENTICATED".

Go to Authentication for credential setup.

Arguments

  • input MutationCreateListTreeInput! required
    • label String! required
    • description String optional
    • htmlDescription String optional
    • HTMLDescription String optional — Deprecated: Use htmlDescription instead.
    • listTreeNodes [CreateListTreeNodeInput!] optional
      • listId String! required
      • position Int optional
      • references [CreateReferenceInput!] optional
        • origin String! required
        • value String! required
    • metafields [CreateMetafieldInput!] optional
      • key String! required
      • namespace String! required
      • type String! required — Metafield value type. Live catalog validation accepts lowercase values such as boolean, string, stringMultiLine, number, numberDecimal, date, dateTime, json, measurement, url, reference, money, list.string, list.number, list.numberDecimal. Uppercase STRING is rejected.
      • value String! required
    • name String optional
    • references [CreateReferenceInput!] optional
      • origin String! required
      • value String! required
    • status String optional — The status of the list tree, one of ACTIVE, ARCHIVED, DRAFT.

Possible returns

  • ListTree ListTree — A List tree holds the hierarchical information of a group of lists.

Last updated on

How is this guide?