Create Grid
Create a new dynamic table as a page resource.
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
Body
application/json
{
"title": "example",
"page": {
"id": 0,
"slug": "example"
}
}
|
Name |
Description |
|
page |
All of 1 type
The page to attach the table to. Specify the ID or slug of an existing page. Example
|
|
title |
Type: string New table title. Min length: Max length: Example: |
PageIdentity
Page identifier
|
Name |
Description |
|
id |
Type: integer Page ID. Either |
|
slug |
Type: string Page address relative to the Wiki root, such as Example: |
Example
{
"id": 0,
"slug": "example"
}
Responses
200 OK
OK
Body
application/json
{
"id": "example",
"created_at": "2025-01-01T00:00:00Z",
"title": "example",
"page": {
"id": 0,
"slug": "example"
},
"structure": {
"default_sort": [
{
"slug": "example",
"title": "example",
"direction": null
}
],
"columns": [
{
"id": "example",
"slug": "example",
"title": "example",
"type": null,
"required": true,
"width": 0,
"width_units": null,
"pinned": null,
"color": null,
"multiple": true,
"format": null,
"ticket_field": null,
"select_options": [
null
],
"mark_rows": true,
"description": "example"
}
]
},
"rich_text_format": "yfm",
"rows": [
{
"id": "example",
"row": [
0
],
"pinned": true,
"color": "blue"
}
],
"revision": "example",
"user_permissions": [
"create_page"
],
"attributes": {
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z"
},
"template_id": 0
}
|
Name |
Description |
|
created_at |
Type: string<date-time> Date and time the table was created Example: |
|
id |
Any of 2 types
Dynamic table ID. In Example: |
|
page |
All of 1 type
The page the table is attached to Example
|
|
revision |
Type: string Table version. Pass this value in the Example: |
|
rich_text_format |
All of 1 type
Text format in the table Example: |
|
rows |
Type: GridRowSchema[] Table rows Example
|
|
structure |
All of 1 type
The table structure (columns and data types) Example
|
|
title |
Type: string Table title Example: |
|
attributes |
All of 1 type
This field is not returned by default Include Returns additional attributes of the dynamic table. Example
|
|
template_id |
Type: integer ID of the template that the table belongs to. |
|
user_permissions |
Type: UserPermission[] This field is not returned by default Include Returns access permissions for the page that owns the dynamic table. 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
ColumnSortSchema
Sort schema for a grid column
|
Name |
Description |
|
direction |
All of 1 type
Sort direction Example: |
|
slug |
Type: string Unique text ID of the column Example: |
|
title |
Type: string Column title Example: |
Example
{
"slug": "example",
"title": "example",
"direction": "asc"
}
ColumnType
Data type of a dynamic table column.
Type: string
Enum: string, number, date, select, staff, checkbox, ticket, ticket_field
WidthUnits
Column width units.
Type: string
Enum: %, px
ColumnPinTypes
Side where the column is pinned.
Type: string
Enum: left, right
BGColor
Background color of a row or column.
Type: string
Enum: blue, yellow, pink, red, green, mint, grey, orange, magenta, purple, copper, ocean
TextFormat
Text format:
yfm: Yandex Flavored Markdown.wom: Wiki Old Markup (legacy markup).plain: Plain text.
Type: string
Enum: yfm, wom, plain
TicketField
A Tracker issue field whose value is displayed in the column.
Type: string
Enum: assignee, components, created_at, deadline, description, end, estimation, fixversions, followers, last_comment_updated_at, original_estimation, parent, pending_reply_from, priority, project, queue, reporter, resolution, resolved_at, sprint, start, status, status_start_time, status_type, storypoints, subject, tags, type, updated_at, votes
ColumnSchema
Grid column schema
|
Name |
Description |
|
required |
Type: boolean Whether the column must be filled in |
|
slug |
Type: string Unique text ID of the column (used in formulas and the API) Example: |
|
title |
Type: string Column title (shown in the interface) Example: |
|
type |
All of 1 type
Column data type Example: |
|
color |
All of 1 type
Column background color Example: |
|
description |
Type: string Column description Example: |
|
format |
All of 1 type
Only for Example: |
|
id |
Type: string Unique column ID Example: |
|
mark_rows |
Type: boolean Only for |
|
multiple |
Type: boolean Only for |
|
pinned |
All of 1 type
Column pin state (left, right, or not pinned) Example: |
|
select_options |
Type: string[] Only for Example
|
|
ticket_field |
All of 1 type
Only for Example: |
|
width |
Type: integer Column width |
|
width_units |
All of 1 type
Column width units Example: |
Example
{
"id": "example",
"slug": "example",
"title": "example",
"type": "string",
"required": true,
"width": 0,
"width_units": "%",
"pinned": "left",
"color": "blue",
"multiple": true,
"format": "yfm",
"ticket_field": "assignee",
"select_options": [
"example"
],
"mark_rows": true,
"description": "example"
}
GridStructureSchema
Grid structure
|
Name |
Description |
|
columns |
Type: ColumnSchema[] Table columns Example
|
|
default_sort |
Type: ColumnSortSchema[] Default sort order Example
|
Example
{
"default_sort": [
{
"slug": "example",
"title": "example",
"direction": "asc"
}
],
"columns": [
{
"id": "example",
"slug": "example",
"title": "example",
"type": "string",
"required": true,
"width": 0,
"width_units": "%",
"pinned": "left",
"color": "blue",
"multiple": true,
"format": "yfm",
"ticket_field": "assignee",
"select_options": [
"example"
],
"mark_rows": true,
"description": "example"
}
]
}
TicketSchema
Yandex Tracker issue schema
|
Name |
Description |
|
key |
Type: string Issue key (for example, Example: |
|
resolved |
Type: boolean The issue is resolved (closed). |
Example
{
"key": "example",
"resolved": true
}
UserIdentity
User identifier
|
Name |
Description |
|
cloud_uid |
Type: string User identifier in the cloud Example: |
|
uid |
Type: string Yandex user ID Example: |
Example
{
"uid": "example",
"cloud_uid": "example"
}
UserSchema
User information
|
Name |
Description |
|
affiliation |
Type: string User affiliation Example: |
|
display_name |
Type: string User display name Example: |
|
id |
Type: integer Internal user identifier |
|
is_dismissed |
Type: boolean The user is dismissed |
|
username |
Type: string User login Example: |
|
identity |
All of 1 type
User identifier in the system Example
|
Example
{
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
}
UnresolvedUserSchema
Schema for a user that was not found in the system
|
Name |
Description |
|
identity |
All of 1 type
User ID Example
|
|
username |
Type: string User login Example: |
Example
{
"username": "example",
"identity": {
"uid": "example",
"cloud_uid": "example"
}
}
TrackerEnumField
Enum field from Yandex Tracker
|
Name |
Description |
|
display |
Type: string Displayed value of the field Example: |
|
key |
Type: string Field value key Example: |
Example
{
"display": "example",
"key": "example"
}
GridRowSchema
Dynamic table row schema
|
Name |
Description |
|
id |
Type: string Unique row identifier Example: |
|
row |
Type: arrayAny of 10 types
Row cell values. When retrieving a table, their order matches the column order. When adding rows, only the provided values are returned, in the order of the keys in the request object. Example
|
|
color |
All of 1 type
Row background color Example: |
|
pinned |
Type: boolean The row is pinned |
Example
{
"id": "example",
"row": [
0
],
"pinned": true,
"color": "blue"
}
UserPermission
User access permissions for the page:
create_page: Create subpages.delete: Delete the page.edit: Edit the page.view: View the page.comment: Add comments.change_authors: Change authors.change_acl: Change the access list.set_redirect: Set a redirect.manage_invite: Manage invitations.view_invite: View invitations.admin: Administrative permissions.
Type: string
Enum: create_page, delete, edit, view, comment, change_authors, change_acl, set_redirect, manage_invite, view_invite, admin
GridAttributesSchema
Dynamic table attributes (metadata)
|
Name |
Description |
|
created_at |
Type: string<date-time> Date and time the table was created Example: |
|
modified_at |
Type: string<date-time> Date and time the table was last modified Example: |
Example
{
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z"
}