Update Grid

Updates dynamic table settings.

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}

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",
  "title": "example",
  "default_sort": [
    {}
  ]
}

Name

Description

default_sort

Type: object[]

[additional]

Type: SortDirection

Sort direction:

  • asc: Ascending (smallest to largest, A to Z).
  • desc: Descending (largest to smallest, Z to A).

Enum: asc, desc

Default sorting: a list of objects such as {"column_slug": "asc"} or {"column_slug": "desc"}. An empty list disables sorting.

Example
[
  {}
]

revision

Type: string

The table version used as the basis for the changes.

Example: example

title

Type: string

New table title. If omitted, the title remains unchanged.

Min length: 1

Max length: 255

Example: example

SortDirection

Sort direction:

  • asc: Ascending (smallest to largest, A to Z).
  • desc: Descending (largest to smallest, Z to A).

Type: string

Enum: asc, desc

Responses

200 OK

OK

Body

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

Name

Description

revision

Type: string

Table revision after the operation.

Example: example