Move Rows

Moves rows in a dynamic table.

For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.

Request

POST

https://api.wiki.yandex.net/v1/grids/{idx}/rows/move

Path parameters

Name

Description

idx

Type: string<uuid4>

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: ``

Body

application/json
{
  "revision": "example",
  "position": 0,
  "after_row_id": "example",
  "row_id": "example",
  "rows_count": 0
}

Name

Description

row_id

Type: string

The ID of the first row to move.

Example: example

after_row_id

Type: string

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

Example: example

position

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.

revision

Type: string

The table version used as the basis for the changes.

Example: example

rows_count

Type: integer

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

Exclusive min: false

Responses

200 OK

OK

Body

application/json
{
  "revision": "example"
}

Name

Description

revision

Type: string

Table revision after the operation.

Example: example