Добавить контент
Request
POST
https://api.wiki.yandex.net/v1/pages/{idx}/append-content
Path parameters
|
Name |
Description |
|
idx |
Type: integer |
Query parameters
|
Name |
Description |
|
fields |
Type: string Example: `` |
|
is_silent |
Type: boolean Default: |
Body
application/json
{
"content": "example",
"body": {
"location": "top"
},
"section": {
"id": 0,
"location": null
},
"anchor": {
"name": "example",
"fallback": false,
"regex": false
}
}
|
Name |
Description |
|
content |
Type: string Min length: Example: |
|
anchor |
Type: PageAppendContentAnchorSchema Example
|
|
body |
Type: PageAppendContentBodySchema Example
|
|
section |
Type: PageAppendContentSectionSchema Example
|
Location
An enumeration.
Type: string
Enum: top, bottom
PageAppendContentBodySchema
|
Name |
Description |
|
location |
Type: Location An enumeration. Enum: |
Example
{
"location": "top"
}
PageAppendContentSectionSchema
|
Name |
Description |
|
id |
Type: integer |
|
location |
Type: Location An enumeration. Enum: |
Example
{
"id": 0,
"location": "top"
}
PageAppendContentAnchorSchema
|
Name |
Description |
|
name |
Type: string Example: |
|
fallback |
Type: boolean Default: |
|
regex |
Type: boolean Default: |
Example
{
"name": "example",
"fallback": false,
"regex": false
}
Responses
200 OK
OK
Body
application/json
{
"id": 0,
"slug": "example",
"title": "example",
"page_type": "page",
"redirect": {
"page_id": 0,
"redirect_target": {
"id": 0,
"slug": "example",
"title": "example",
"page_type": null
}
},
"breadcrumbs": [
{
"id": 0,
"title": "example",
"slug": "example",
"page_exists": true
}
],
"attributes": {
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z",
"lang": "example",
"is_readonly": true,
"comments_count": 0,
"comments_enabled": true,
"keywords": [
"example"
],
"is_collaborative": true,
"is_draft": true
},
"content": {
"embed": {
"iframe_src": "example",
"edit_src": "example"
},
"acl_management": "unknown",
"type": "docx",
"filename": "example",
"error": "example"
}
}
|
Name |
Description |
|
id |
Type: integer |
|
page_type |
Type: PageType An enumeration. Enum: |
|
slug |
Type: string Example: |
|
title |
Type: string Example: |
|
attributes |
All of 1 type
По умолчанию поле не возвращается Example
|
|
breadcrumbs |
Type: BreadcrumbSchema[] По умолчанию поле не возвращается Example
|
|
content |
Any of 3 types
По умолчанию поле не возвращается
Example
|
|
redirect |
All of 1 type
По умолчанию поле не возвращается Example
|
PageType
An enumeration.
Type: string
Enum: page, grid, cloud_page, wysiwyg, template
PageDetailsSchema
|
Name |
Description |
|
id |
Type: integer |
|
page_type |
Type: PageType An enumeration. Enum: |
|
slug |
Type: string Example: |
|
title |
Type: string Example: |
Example
{
"id": 0,
"slug": "example",
"title": "example",
"page_type": "page"
}
RedirectSchema
|
Name |
Description |
|
page_id |
Type: integer ID страницы, на которую перенаправляет текущая страница. |
|
redirect_target |
All of 1 type
Если есть цепочка редиректов A->B->C->D, для A,B и С, это будет страница D. Example
|
Example
{
"page_id": 0,
"redirect_target": {
"id": 0,
"slug": "example",
"title": "example",
"page_type": "page"
}
}
BreadcrumbSchema
|
Name |
Description |
|
page_exists |
Type: boolean |
|
slug |
Type: string Example: |
|
title |
Type: string Example: |
|
id |
Type: integer |
Example
{
"id": 0,
"title": "example",
"slug": "example",
"page_exists": true
}
PageAttributesSchema
|
Name |
Description |
|
comments_count |
Type: integer |
|
comments_enabled |
Type: boolean |
|
created_at |
Type: string<date-time> Example: |
|
is_readonly |
Type: boolean |
|
lang |
Type: string Example: |
|
modified_at |
Type: string<date-time> Example: |
|
is_collaborative |
Type: boolean |
|
is_draft |
Type: boolean |
|
keywords |
Type: string[] Example
|
Example
{
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z",
"lang": "example",
"is_readonly": true,
"comments_count": 0,
"comments_enabled": true,
"keywords": [
"example"
],
"is_collaborative": true,
"is_draft": true
}
CloudPageEmbeddingSchema
|
Name |
Description |
|
edit_src |
Type: string URL для открытия в новом окне для редактирования документа в MS365 Example: |
|
iframe_src |
Type: string SRC для iframe Example: |
Example
{
"iframe_src": "example",
"edit_src": "example"
}
Ms365AclManagementType
An enumeration.
Type: string
Enum: unknown, unmanaged, wiki
Ms365DocType
An enumeration.
Type: string
Enum: docx, pptx, xlsx
CloudPageContentSchema
|
Name |
Description |
|
acl_management |
Type: Ms365AclManagementType An enumeration. Enum: |
|
embed |
Type: CloudPageEmbeddingSchema Example
|
|
filename |
Type: string Example: |
|
type |
Type: Ms365DocType An enumeration. Enum: |
|
error |
Type: string Example: |
Example
{
"embed": {
"iframe_src": "example",
"edit_src": "example"
},
"acl_management": "unknown",
"type": "docx",
"filename": "example",
"error": "example"
}
LegacyCellSchema
|
Name |
Description |
|
col_id |
Type: string Соответствует Example: |
|
row_id |
Type: string Example: |
|
raw |
Type: unknown Сырое значение; Example: |
|
sort |
Type: unknown Вспомогательное поле, будет использоваться при сортировке колонки Example: |
|
status |
Type: unknown Для типа Example: |
|
transformed |
Type: unknown Для типа Example: |
|
url |
Type: string Для типа Example: |
Example
{
"row_id": "example",
"col_id": "example",
"raw": null,
"sort": null,
"url": "example",
"status": null,
"transformed": null
}
SortDirection
An enumeration.
Type: string
Enum: asc, desc
LegacyGridSortSchema
|
Name |
Description |
|
name |
Type: string Имя колонки Example: |
|
type |
Type: SortDirection An enumeration. Enum: |
Example
{
"type": "asc",
"name": "example"
}
LegacyGridColumnTypes
An enumeration.
Type: string
Enum: string, number, date, select, staff, checkbox, ticket, ticket-assignee, ticket-reporter, ticket-status, ticket-priority, ticket-type, ticket-subject, ticket-updatedat, ticket-createdat, ticket-originalestimation, ticket-fixversions, ticket-components, ticket-storypoints, ticket-deadline, ticket-description, ticket-end, ticket-estimation, ticket-followers, ticket-lastcommentupdatedat, ticket-parent, ticket-pendingreplyfrom, ticket-project, ticket-queue, ticket-resolution, ticket-resolvedat, ticket-sprint, ticket-start, ticket-statusstarttime, ticket-statustype, ticket-tags, ticket-votes
LegacyColumnSchema
|
Name |
Description |
|
id |
Type: string Автогенерируемый идентификатор колонки. Во избежание двусмысленности переименован из Example: |
|
type |
Type: LegacyGridColumnTypes An enumeration. Enum: |
|
format |
Type: string Для типа Example: |
|
mark_row_if_checked |
Type: boolean Только для типа |
|
multiple |
Type: boolean Только для типов |
|
options |
Type: string[] Только для типов Example
|
|
title |
Type: string Default: `` |
|
width |
Type: string Ширина колонки Example: |
|
width_units |
Type: string Единицы измерения, обычно % Example: |
Example
{
"type": "string",
"id": "example",
"title": "",
"width": "example",
"width_units": "example",
"multiple": true,
"options": [
"example"
],
"mark_row_if_checked": true,
"format": "example"
}
LegacyGridStructureSchema
|
Name |
Description |
|
title |
Type: string Example: |
|
fields |
Type: LegacyColumnSchema[] Example
|
|
sorting |
Type: LegacyGridSortSchema[] Example
|
Example
{
"title": "example",
"sorting": [
{
"type": "asc",
"name": "example"
}
],
"fields": [
{
"type": "string",
"id": "example",
"title": "",
"width": "example",
"width_units": "example",
"multiple": true,
"options": [
"example"
],
"mark_row_if_checked": true,
"format": "example"
}
]
}
LegacyGridSchema
|
Name |
Description |
|
structure |
Type: LegacyGridStructureSchema Example
|
|
version |
Type: string Example: |
|
rows |
Type: LegacyCellSchema[][] Example
|
Example
{
"rows": [
[
{
"row_id": "example",
"col_id": "example",
"raw": null,
"sort": null,
"url": "example",
"status": null,
"transformed": null
}
]
],
"structure": {
"title": "example",
"sorting": [
{
"type": "asc",
"name": "example"
}
],
"fields": [
{
"type": "string",
"id": "example",
"title": "",
"width": "example",
"width_units": "example",
"multiple": true,
"options": [
"example"
],
"mark_row_if_checked": true,
"format": "example"
}
]
},
"version": "example"
}
No longer supported, please use an alternative and newer version.