> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IMoveSectionItemToNewSectionPayload

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/model/commands/layout.ts

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Payload of the [IMoveSectionItemToNewSection](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsection/index.md) command.

**Signature:**

```typescript
export interface IMoveSectionItemToNewSectionPayload 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [itemIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloaditemindex) | `readonly` | number | **_(BETA)_** Index of section item that should be moved. Index is zero-based. |
| [itemPath?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloaditempath) | `readonly` | [ILayoutItemPath](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ilayoutitempath/index.md) | **_(BETA)_** _(Optional)_ Index where the item to move is located. TODO LX-648: make the prop required |
| [removeOriginalSectionIfEmpty](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloadremoveoriginalsectionifempty) | `readonly` | boolean | **_(BETA)_** If true and original section stays empty after move, then it will be removed. |
| [sectionIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloadsectionindex) | `readonly` | number | **_(BETA)_** Index of the section where the item to move is located. Index is zero-based. |
| [toSection?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloadtosection) | `readonly` | [ILayoutSectionPath](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ilayoutsectionpath/index.md) | **_(BETA)_** _(Optional)_ Path of section that should be created and the item should be moved into. Index is zero-based. For convenience, you may specify -1 to move to last section. TODO LX-648: make the prop required |
| [toSectionIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloadtosectionindex) | `readonly` | [RelativeIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.relativeindex/index.md) | **_(BETA)_** Index of section to which should be created and the item should be moved into. Index is zero-based. For convenience you may specify -1 to move to last section. |

## Property details

### IMoveSectionItemToNewSectionPayload.itemIndex

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Index of section item that should be moved.

Index is zero-based.

**Signature:**

```typescript
readonly itemIndex: number;
```

#### Remarks

[IMoveSectionItemToNewSectionPayload.itemIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloaditemindex) support will be removed in the next major SDK version. Use [IMoveSectionItemToNewSectionPayload.itemPath](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloaditempath) instead.

TODO LX-648: Remove itemIndex in the next major version.

### IMoveSectionItemToNewSectionPayload.itemPath

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Index where the item to move is located.

TODO LX-648: make the prop required

**Signature:**

```typescript
readonly itemPath?: ILayoutItemPath;
```

### IMoveSectionItemToNewSectionPayload.removeOriginalSectionIfEmpty

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

If true and original section stays empty after move, then it will be removed.

**Signature:**

```typescript
readonly removeOriginalSectionIfEmpty: boolean;
```

### IMoveSectionItemToNewSectionPayload.sectionIndex

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Index of the section where the item to move is located.

Index is zero-based.

**Signature:**

```typescript
readonly sectionIndex: number;
```

#### Remarks

[IMoveSectionItemToNewSectionPayload.sectionIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloadsectionindex) support will be removed in the next major SDK version. Use [IMoveSectionItemToNewSectionPayload.itemPath](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloaditempath) instead.

TODO LX-648: Remove sectionIndex in the next major version.

### IMoveSectionItemToNewSectionPayload.toSection

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Path of section that should be created and the item should be moved into.

Index is zero-based. For convenience, you may specify -1 to move to last section.

TODO LX-648: make the prop required

**Signature:**

```typescript
readonly toSection?: ILayoutSectionPath;
```

### IMoveSectionItemToNewSectionPayload.toSectionIndex

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Index of section to which should be created and the item should be moved into.

Index is zero-based. For convenience you may specify -1 to move to last section.

**Signature:**

```typescript
readonly toSectionIndex: RelativeIndex;
```

#### Remarks

[IMoveSectionItemToNewSectionPayload.toSectionIndex](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloadtosectionindex) support will be removed in the next major SDK version. Use [IMoveSectionItemToNewSectionPayload.itemPath](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.imovesectionitemtonewsectionpayload/index.md#imovesectionitemtonewsectionpayloaditempath) instead.

TODO LX-648: Remove toSectionIndex in the next major version.
