createListTree
View as MarkdownCreate a new list tree.
mutation
Requires commerce.product:write.
Create a new list tree.
Required headers
| Header | Required | Description |
|---|---|---|
x-store-id | Yes | ID 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
inputMutationCreateListTreeInput!requiredlabelString!requireddescriptionStringoptionalhtmlDescriptionStringoptionalHTMLDescriptionStringoptional — Deprecated: Use htmlDescription instead.listTreeNodes[CreateListTreeNodeInput!]optionallistIdString!requiredpositionIntoptionalreferences[CreateReferenceInput!]optionaloriginString!requiredvalueString!required
metafields[CreateMetafieldInput!]optionalkeyString!requirednamespaceString!requiredtypeString!required — Metafield value type. Live catalog validation accepts lowercase values such asboolean,string,stringMultiLine,number,numberDecimal,date,dateTime,json,measurement,url,reference,money,list.string,list.number,list.numberDecimal. UppercaseSTRINGis rejected.valueString!required
nameStringoptionalreferences[CreateReferenceInput!]optionaloriginString!requiredvalueString!required
statusStringoptional — The status of the list tree, one ofACTIVE,ARCHIVED,DRAFT.
Possible returns
ListTreeListTree— A List tree holds the hierarchical information of a group of lists.
Last updated on
How is this guide?