---
title: "moveItems"
slug: "api/basket/operations/moveitems"
sidebar:
  order: 437
---

<a id="ref-fbbccab47aa3"></a>
<a id="ref-1bbb24fcb996"></a>
<a id="ref-1a1502742db9"></a>

## Synopsis

```text
MoveItemsResult[] moveItems(SessionId sessionId,
    MoveItemsDirection direction,
    BItemId[]          itemIds)
throws BasketServiceFault;
```

See also: [MoveItemsResult](/pCon/configuratorOnline/specs/api/basket/types/moveitemsresult#ref-431b349823f5), [`SessionId`](/pCon/configuratorOnline/specs/api/session/types/sessionid#ref-02e397c8fdb4), [MoveItemsDirection ](/pCon/configuratorOnline/specs/api/basket/types/moveitemsdirection#ref-6e4f5492790b), [MoveItemsDirection](/pCon/configuratorOnline/specs/api/basket/types/moveitemsdirection#ref-fbdb316499e4), [`BItemId`](/pCon/configuratorOnline/specs/api/basket/types/bitemid#ref-bccb6c926e5b), [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault#ref-d5adb74faa1b)

The `moveItems` operation moves the basket items identified by the elements of the `itemIds` sequence parameter in the basket item tree maintained by the basket service for the session identified by the `sessionId` parameter. The `direction` argument specifies whether the specified items are to be moved up or down within their current folder, or are to be indented or unindented.

In all cases, the `itemIds` parameter must specify a possibly empty set of existing items all having the same parent item. The top folder must not be part of this set. If one of these conditions is violated, the operations fails with a [BasketServiceFault](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault).

A [`BasketServiceFault`](/pCon/configuratorOnline/specs/api/basket/faults/basketservicefault) is returned if any of the following conditions occurs:

- The  the `itemIds` parameter specifies a set of existing items that don't have the same parent item.

- The top folder is part of the `itemIds` parameter.
