- Request
- Responses
- 200 OK
- Body
- PageType
- PageDetailsSchema
- RedirectSchema
- BreadcrumbSchema
- PageAttributesSchema
- PageAccessTypeAPI
- AccessTypeInheritedAPI
- RoleAllStaffAPI
- PageInviteStatus
- AclPreviewInviteSchema
- PageAccessPolicySchema
- UserIdentity
- UserSchema
- ComSource
- ComIdentitySchema
- GroupType
- IntranetGroupMetadata
- IamGroupMetadata
- GroupSchema
- RoleAPI
- InheritanceAPI
- PageAccessItem
- PageAccessListsSchema
- PageOwnerSchema
Append Content
Adds text at the specified location on a page. Specify exactly one field: body, section,
or anchor.
If you provide revision, the service checks the page version. A mismatch causes an update
conflict.
If the anchor is not found and anchor.fallback=true, the text is added to the end of the page. Otherwise,
an error is returned because the anchor was not found.
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/pages/{idx}/append-content
Path parameters
|
Name |
Description |
|
idx |
Type: integer Page ID. The value of |
Query parameters
|
Name |
Description |
|
fields |
Type: string Additional response fields, separated by commas, such as Example: `` |
|
is_silent |
Type: boolean Do not notify subscribers about the page update Default: |
Body
application/json
{
"revision": "example",
"content": "example",
"body": {
"location": "top"
},
"section": {
"id": 0,
"location": null
},
"anchor": {
"name": "example",
"fallback": false,
"regex": false
}
}
|
Name |
Description |
|
content |
Type: string Text to add to the page Min length: Example: |
|
anchor |
All of 1 type
Insert after an anchor. Specify exactly one field: Example
|
|
body |
All of 1 type
Insert at the beginning or end of the page. Specify exactly one of these fields: Example
|
|
revision |
Type: string The page version on which the change is based. Example: |
|
section |
All of 1 type
Insert into a page section. Specify exactly one of these fields: Example
|
Location
An enumeration.
Type: string
Enum: top, bottom
PageAppendContentBodySchema
|
Name |
Description |
|
location |
All of 1 type
Insertion location: Example: |
Example
{
"location": "top"
}
PageAppendContentSectionSchema
|
Name |
Description |
|
id |
Type: integer Page section ID |
|
location |
All of 1 type
Insertion location: Example: |
Example
{
"id": 0,
"location": "top"
}
PageAppendContentAnchorSchema
|
Name |
Description |
|
name |
Type: string The name of the anchor after which to insert the text Example: |
|
fallback |
Type: boolean If the anchor is not found, append the text to the end of the page instead of returning an error Default: |
|
regex |
Type: boolean Find the anchor in the source text using a regular expression instead of parsing the markup 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,
"entity_links_count": 0,
"comments_enabled": true,
"is_collaborative": true,
"is_draft": true
},
"content": "example",
"access_policy": {
"access_type": "inherited",
"inherited_access_type": "all_staff",
"all_staff_role": "reader",
"has_external": true,
"invite": {
"status": null
}
},
"access_lists": {
"direct": [
{
"id": "example",
"created_at": "2025-01-01T00:00:00Z",
"user": null,
"group": null,
"role": null,
"inheritance": null
}
],
"by_link": [
null
],
"inherited": [
null
]
},
"owner": {
"user": {
"id": 0,
"identity": null,
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"group": {
"id": "example",
"identity": null,
"name": "example",
"type": null,
"metadata": null,
"members_count": 0
}
}
}
|
Name |
Description |
|
id |
Type: integer Page ID. In |
|
page_type |
Type: string Page type Enum: |
|
slug |
Type: string Page address relative to the Wiki root, such as Example: |
|
title |
Type: string Page title Example: |
|
access_lists |
All of 1 type
This field is not returned by default Include Page access lists Example
|
|
access_policy |
All of 1 type
This field is not returned by default Include Page access settings Example
|
|
attributes |
All of 1 type
This field is not returned by default Include Example
|
|
breadcrumbs |
Type: BreadcrumbSchema[] This field is not returned by default To include it in the response, add Example
|
|
content |
Type: string This field is not returned by default Include Page content as a string. Example: |
|
owner |
All of 1 type
This field is not returned by default Include Page owner Example
|
|
redirect |
All of 1 type
This field is not returned by default To include it in the response, add Returns Example
|
PageType
Page type:
page— regular pagegrid— page with a tablewysiwyg— page with a visual editortemplate— page template
Type: string
Enum: page, grid, wysiwyg, template
PageDetailsSchema
Brief page information
|
Name |
Description |
|
id |
Type: integer Page ID. In |
|
page_type |
All of 1 type
Page type Example: |
|
slug |
Type: string Page address relative to the Wiki root, such as Example: |
|
title |
Type: string Page title Example: |
Example
{
"id": 0,
"slug": "example",
"title": "example",
"page_type": "page"
}
RedirectSchema
Page redirect information
|
Name |
Description |
|
page_id |
Type: integer ID of the page that the current page redirects to. |
|
redirect_target |
All of 1 type
The final page in the redirect chain. For example, in the chain A → B → C → D, this is page D for pages A, B, and C. Example
|
Example
{
"page_id": 0,
"redirect_target": {
"id": 0,
"slug": "example",
"title": "example",
"page_type": "page"
}
}
BreadcrumbSchema
Breadcrumb item (navigation chain)
|
Name |
Description |
|
page_exists |
Type: boolean The page exists |
|
slug |
Type: string Page address (slug) Example: |
|
title |
Type: string Page title Example: |
|
id |
Type: integer Page ID (if the page exists) |
Example
{
"id": 0,
"title": "example",
"slug": "example",
"page_exists": true
}
PageAttributesSchema
Additional page attributes
|
Name |
Description |
|
comments_count |
Type: integer Number of comments on the page |
|
comments_enabled |
Type: boolean Comments are enabled |
|
created_at |
Type: string<date-time> Date and time the page was created Example: |
|
entity_links_count |
Type: integer Number of links on the page |
|
is_readonly |
Type: boolean The page is read-only |
|
lang |
Type: string Page language (for example, Example: |
|
modified_at |
Type: string<date-time> Date and time the page was last modified Example: |
|
is_collaborative |
Type: boolean Collaborative editing is enabled |
|
is_draft |
Type: boolean The page is a draft |
Example
{
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z",
"lang": "example",
"is_readonly": true,
"comments_count": 0,
"entity_links_count": 0,
"comments_enabled": true,
"is_collaborative": true,
"is_draft": true
}
PageAccessTypeAPI
Page access type:
inherited: Access is inherited from the parent page.all_staff: Access for all employees.custom: Personal access permissions.
Type: string
Enum: inherited, all_staff, custom
AccessTypeInheritedAPI
Inherited access type:
all_staff: Access for all employees.custom: Personal access permissions.
Type: string
Enum: all_staff, custom
RoleAllStaffAPI
reader: Read.editor: Edit.extra_editor: Extended editing.
Type: string
Enum: reader, editor, extra_editor
PageInviteStatus
Invite link status:
0: Deleted.1: Enabled.2: Disabled.
Type: integer
Enum: 0, 1, 2
AclPreviewInviteSchema
Information about the invite link for page access
|
Name |
Description |
|
status |
All of 1 type
Invite link status: Example: |
Example
{
"status": 0
}
PageAccessPolicySchema
Page access policy
|
Name |
Description |
|
access_type |
All of 1 type
Access type Example: |
|
all_staff_role |
All of 1 type
Role for "All employees" access Example: |
|
has_external |
Type: boolean Indicates whether the page is accessible to external consultants. If |
|
inherited_access_type |
All of 1 type
Inherited access type Example: |
|
invite |
All of 1 type
Information about the invite link for page access Example
|
Example
{
"access_type": "inherited",
"inherited_access_type": "all_staff",
"all_staff_role": "reader",
"has_external": true,
"invite": {
"status": 0
}
}
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"
}
ComSource
Source of the group ID:
dir: IAM.cloud: Yandex Cloud.com: Local database.staff: Internal employee directory.
Type: string
Enum: dir, cloud, com, staff
ComIdentitySchema
Group identifier
|
Name |
Description |
|
id |
Type: string Group identifier in the specified source Example: |
|
src |
All of 1 type
Identifier source Example: |
Example
{
"src": "dir",
"id": "example"
}
GroupType
Group type:
wiki: Wiki group.service: Service group.servicerole: Service role.group: Regular group.department: Department.
Type: string
Enum: wiki, service, servicerole, group, department
IntranetGroupMetadata
Group metadata from the internal directory
|
Name |
Description |
|
externals_count |
Type: integer Number of external consultants in the group |
|
url |
Type: string Group URL in the directory Example: |
Example
{
"url": "example",
"externals_count": 0
}
IamGroupMetadata
Group metadata from IAM (Identity and Access Management)
|
Name |
Description |
|
dir_id |
Type: string Directory identifier Example: |
Example
{
"dir_id": "example"
}
GroupSchema
Group information
|
Name |
Description |
|
identity |
All of 1 type
Group identifier in the system Example
|
|
name |
Type: string Group name Example: |
|
type |
All of 1 type
Group type Example: |
|
id |
Type: string Group ID. Uses dir_id in the external version and staff_id in the internal version. Example: |
|
members_count |
Type: integer Number of group members Default: |
|
metadata |
Any of 2 types
Additional group metadata Example
|
Example
{
"id": "example",
"identity": {
"src": "dir",
"id": "example"
},
"name": "example",
"type": "wiki",
"metadata": {
"url": "example",
"externals_count": 0
},
"members_count": 0
}
RoleAPI
Page access role:
reader: Read.editor: Edit.extra_editor: Extended editing.author: Author (full access).
Type: string
Enum: reader, editor, extra_editor, author
InheritanceAPI
Access inheritance for subpages:
inherited: Subpages inherit the access permission.not_inherited: Subpages do not inherit the access permission.
Type: string
Enum: inherited, not_inherited
PageAccessItem
Custom page access item
|
Name |
Description |
|
id |
Type: string Unique access identifier Example: |
|
role |
All of 1 type
Access role Example: |
|
created_at |
Type: string<date-time> Date and time the access was created Example: |
|
group |
All of 1 type
Group granted access (populated if access was granted to a group) Example
|
|
inheritance |
All of 1 type
Access inheritance setting for subpages Example: |
|
user |
All of 1 type
User granted access (populated if access was granted to a user) Example
|
Example
{
"id": "example",
"created_at": "2025-01-01T00:00:00Z",
"user": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"group": {
"id": "example",
"identity": {
"src": null,
"id": "example"
},
"name": "example",
"type": "wiki",
"metadata": {
"url": "example",
"externals_count": 0
},
"members_count": 0
},
"role": "reader",
"inheritance": "inherited"
}
PageAccessListsSchema
Page access lists
|
Name |
Description |
|
by_link |
Type: PageAccessItem[] Access via invite link Example
|
|
direct |
Type: PageAccessItem[] Direct custom access to the page Example
|
|
inherited |
Type: PageAccessItem[] Access inherited from parent pages Example
|
Example
{
"direct": [
{
"id": "example",
"created_at": "2025-01-01T00:00:00Z",
"user": {
"id": 0,
"identity": null,
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"group": {
"id": "example",
"identity": null,
"name": "example",
"type": null,
"metadata": null,
"members_count": 0
},
"role": "reader",
"inheritance": "inherited"
}
],
"by_link": [
null
],
"inherited": [
null
]
}
PageOwnerSchema
Page owner
|
Name |
Description |
|
group |
All of 1 type
Group that owns the page Example
|
|
user |
All of 1 type
User who owns the page Example
|
Example
{
"user": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"group": {
"id": "example",
"identity": {
"src": null,
"id": "example"
},
"name": "example",
"type": "wiki",
"metadata": {
"url": "example",
"externals_count": 0
},
"members_count": 0
}
}