Получить таблицу
Request
GET
https://api.wiki.yandex.net/v1/grids/{idx}
Path parameters
|
Name |
Description |
|
idx* |
Type: string<uuid4> |
Query parameters
|
Name |
Description |
|
fields |
Type: string Дополнительные поля, через запятую; см. описание формата ответа. |
|
filter |
Type: string Отфильтровать строки; Например |
|
only_cols |
Type: string Вернуть только определенные колонки. Слаг через запятую |
|
only_rows |
Type: string Вернуть только определенные ряды. ID через запятую |
|
revision |
Type: integer Загрузить старую версию динамической таблицы |
|
sort |
Type: string Отсортировать строки по колонкам; Например |
Responses
200 OK
OK
Body
application/json
{
"created_at": "2022-12-29T18:02:01Z",
"title": "string",
"page": {
"id": 0,
"slug": "string"
},
"structure": {
"default_sort": [
{
"slug": "string",
"title": "string",
"direction": "asc"
}
],
"columns": [
{
"id": "string",
"slug": "string",
"title": "string",
"type": "string",
"required": false,
"width": 0,
"width_units": "%",
"pinned": "left",
"color": "blue",
"multiple": false,
"format": "yfm",
"ticket_field": "assignee",
"select_options": [
"string"
],
"mark_rows": false,
"description": "string"
}
]
},
"rich_text_format": "yfm",
"rows": [
{
"id": "string",
"row": [
null
],
"pinned": false,
"color": "blue"
}
],
"revision": "string",
"user_permissions": [
"create_page"
],
"attributes": {
"created_at": "2022-12-29T18:02:01Z",
"modified_at": "2022-12-29T18:02:01Z"
},
"template_id": 0
}
|
Name |
Description |
|
created_at* |
Type: string<date-time> |
|
id* |
Type: any |
|
page* |
Type: PageIdentity |
|
revision* |
Type: string |
|
rich_text_format* |
Type: TextFormat An enumeration. Enum: |
|
rows* |
Type: GridRowSchema[] |
|
structure* |
Type: GridStructureSchema |
|
title* |
Type: string |
|
attributes |
Type: GridAttributesSchema По умолчанию поле не возвращается |
|
template_id |
Type: integer |
|
user_permissions |
Type: UserPermission[] По умолчанию поле не возвращается Возвращает права доступа страницы, которой принадлежит динамическая таблица. Enum: |
PageIdentity
|
Name |
Description |
|
id |
Type: integer Обязателен |
|
slug |
Type: string |
GridRowSchema
|
Name |
Description |
|
id* |
Type: string |
|
row* |
Type: any[] |
|
color |
Type: BGColor An enumeration. Enum: |
|
pinned |
Type: boolean |
GridStructureSchema
|
Name |
Description |
|
columns* |
Type: ColumnSchema[] |
|
default_sort |
Type: ColumnSortSchema[] |
GridAttributesSchema
|
Name |
Description |
|
created_at* |
Type: string<date-time> |
|
modified_at* |
Type: string<date-time> |
UserPermission
An enumeration.
|
Type |
Description |
|
Enum: |
BGColor
An enumeration.
|
Type |
Description |
|
Enum: |
ColumnSchema
|
Name |
Description |
|
required* |
Type: boolean |
|
slug* |
Type: string |
|
title* |
Type: string |
|
type* |
Type: ColumnType An enumeration. Enum: |
|
color |
Type: BGColor An enumeration. Enum: |
|
description |
Type: string Описание |
|
format |
Type: TextFormat Только для Enum: |
|
id |
Type: string |
|
mark_rows |
Type: boolean Только для |
|
multiple |
Type: boolean Только для |
|
pinned |
Type: ColumnPinTypes An enumeration. Enum: |
|
select_options |
Type: string[] Только для |
|
ticket_field |
Type: TicketField Только для Enum: |
|
width |
Type: integer |
|
width_units |
Type: WidthUnits An enumeration. Enum: |
ColumnSortSchema
|
Name |
Description |
|
direction* |
Type: SortDirection An enumeration. Enum: |
|
slug* |
Type: string |
|
title* |
Type: string |
ColumnType
An enumeration.
|
Type |
Description |
|
Enum: |
TicketField
An enumeration.
|
Type |
Description |
|
Enum: |
No longer supported, please use an alternative and newer version.