You are reading the documentation for SDK v2, which is no longer the latest version. Switch to current
createMyShoppingList
Endpoint for creating new wishlist. By default, it uses the createMyShoppingListDefaultQuery GraphQL query
Signature
export declare function createMyShoppingList(
context: SetupContext,
draft: CreateMyShoppingListParams,
customQuery?: CustomQuery,
responseOptions?: ResponseOptions
): Promise<CreateMyShoppingListResponse>;Parameters
| Name | Required | Type | Description |
|---|---|---|---|
context | Required | SetupContext | Automatically injected context. Refer to SetupContext |
draft | Required | CreateMyShoppingListParams | Wishlist information |
customQuery | Optional | CustomQuery | Custom queries included in the request |
responseOptions | Optional | ResponseOptions |
Returns
User wishlist