---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://yandex.ru/support/wiki/en/api-ref/grids/grids__move_columns.md
  - https://yandex.ru/support/wiki/ru/api-ref/grids/grids__move_columns.md
  - href: https://yandex.ru/support/wiki/en/api-ref/grids/grids__move_columns.md
    type: text/markdown
    title: Markdown version
  - href: https://yandex.ru/support/wiki/en/llms.txt?revision=r22094953
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.ru/support/wiki/en/llms.txt?revision=r22094953

<div class="openapi">

# Move Columns

<!-- markdownlint-disable-file -->

Moves columns in a dynamic table.

For common headers and authentication methods, see [Access to the API](https://yandex.ru/support/wiki/en/api-ref/access.md#headers). For sample scenarios, see [API usage examples](https://yandex.ru/support/wiki/en/api-ref/examples.md).

## Request

<div class="openapi__requests">

<div class="openapi__request__wrapper" style="--method: var(--dc-openapi-methods-post);margin-bottom: 12px">

<div class="openapi__request">

POST {.openapi__method}
```text translate=no
https://api.wiki.yandex.net/v1/grids/{idx}/columns/move
```

</div>

</div>

</div>

### Path parameters

#|
|| **Name** | **Description** ||
||

_idx_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string&lt;uuid4&gt;

Dynamic table UUID. The value of `idx` is the same as the `id` field value in the response to `POST /v1/grids`, or `results[].id` in the response to `GET /v1/pages/{idx}/grids`. In `/v1/pages/{idx}/grids`, `idx` is the numeric page ID.

_Example:_{.json-schema-reset .json-schema-example} ``
{.table-cell}
||
|#{.json-schema-properties}

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "revision": "example",
  "position": 0,
  "column_slug": "example",
  "columns_count": 0
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_column_slug_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: string

Slug of the first column to move.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
||

_position_{.json-schema-reset .json-schema-property .json-schema-required}
{.table-cell}|
**Type**: integer

Zero-based destination position.
{.table-cell}
||
||

_columns_count_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: integer

The number of subsequent columns to move along with column_slug. If omitted, only the column identified by column_slug is moved.

_Exclusive min:_{.json-schema-reset .json-schema-assertion} `false`
{.table-cell}
||
||

_revision_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

The table version used as the basis for the changes.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

## Responses

<div class="openapi__response__code__200">

## 200 OK

OK

<div class="openapi-entity">

### Body

{% cut "application/json" %}

```json translate=no
{
  "revision": "example"
}
```

{% endcut %}

#|
|| **Name** | **Description** ||
||

_revision_{.json-schema-reset .json-schema-property}
{.table-cell}|
**Type**: string

Table revision after the operation.

_Example:_{.json-schema-reset .json-schema-example} `example`
{.table-cell}
||
|#{.json-schema-properties}

</div>

</div>

</div>

[*Deprecated]: No longer supported, please use an alternative and newer version.