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

<div class="openapi">

# Move Rows

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

Moves rows 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}/rows/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,
  "after_row_id": "example",
  "row_id": "example",
  "rows_count": 0
}
```

{% endcut %}

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

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

The ID of the first row to move.

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

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

ID of the row after which to place the rows. Takes precedence over position.

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

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

The destination position, starting from zero. Used if after_row_id is not specified. If neither field is provided, the rows are moved to the end of the table.
{.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}
||
||

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

Number of subsequent rows to move together with row_id. If omitted, only row_id is moved.

_Exclusive min:_{.json-schema-reset .json-schema-assertion} `false`
{.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.