- Request
- Responses
- 200 OK
- Body
- PageType
- PageDetailsSchema
- RedirectSchema
- BreadcrumbSchema
- PageAttributesSchema
- AccessTypeInheritedAPI
- PageInviteStatus
- AclPreviewInviteSchema
- PageAccessPolicySchema
- UserIdentity
- UserSchema
- ComSource
- ComIdentitySchema
- GroupType
- IntranetGroupMetadata
- IamGroupMetadata
- GroupSchema
- RoleAPI
- InheritanceAPI
- PageAccessItem
- PageAccessListsSchema
- PageOwnerSchema
- ActualityStatus
- ActualitySchema
- RevisionDraftInfo
- PublicPageRevisionStatusSchema
- PublicPageRevisionShortSchema
- PageRevisionSchema
Creating a page
Creates a page.
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
Query parameters
|
Name |
Description |
|
fields |
Any of 2 types
Additional response fields, separated by commas, such as Example: `` |
|
is_silent |
Type: boolean Do not notify subscribers when the page is created. Default: |
Body
application/json
{
"title": "example",
"slug": "example",
"content": "example",
"access_policy": {
"access_type": "inherited",
"all_staff_role": "reader"
}
}
|
Name |
Description |
|
slug |
Type: string Address (slug) of the page to create Example: |
|
title |
Type: string Title of the page to create Min length: Max length: Example: |
|
access_policy |
Any of 2 types
Page access settings Example
|
|
content |
Any of 2 types
The source text of the page to create Example: |
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
RoleAllStaffAPI
reader: Read.editor: Edit.extra_editor: Extended editing.
Type: string
Enum: reader, editor, extra_editor
AccessPolicyUpdateSchema
Schema for updating the page access policy
|
Name |
Description |
|
access_type |
Type: PageAccessTypeAPI Page access type Page access type:
Enum: |
|
all_staff_role |
Any of 2 types
Role for "All employees" access. The available roles depend on the organization's access mode. Example: |
Example
{
"access_type": "inherited",
"all_staff_role": "reader"
}
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": "page"
}
},
"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,
"is_available_for_ai": true
},
"content": "example",
"access_policy": {
"access_type": "inherited",
"inherited_access_type": "all_staff",
"all_staff_role": "reader",
"has_external": true,
"invite": {
"status": 0
}
},
"access_lists": {
"direct": [
{
"id": "example",
"created_at": null,
"user": null,
"group": null,
"role": "reader",
"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": null,
"identity": {},
"name": "example",
"type": "wiki",
"metadata": null,
"members_count": 0
}
},
"last_revision_id": 0,
"actuality": {
"status": "possibly_obsolete",
"marked_at": "2025-01-01T00:00:00Z",
"user": null,
"comment": "example",
"external_links": [
"example"
],
"actual_pages": [
null
]
},
"active_revision": {
"id": 0,
"author": null,
"created_at": "2025-01-01T00:00:00Z",
"page_type": null,
"revision_draft": {
"id": 0,
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z"
},
"publication": {
"status": "pending_publication"
}
}
}
|
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 |
Any of 2 types
This field is not returned by default Include Page access lists Example
|
|
access_policy |
Any of 2 types
This field is not returned by default Include Page access settings Example
|
|
active_revision |
Any of 2 types
If you request an earlier page revision, this field contains information about that revision. Example
|
|
actuality |
Any of 2 types
This field is not returned by default Include Example
|
|
attributes |
Any of 2 types
This field is not returned by default Include Example
|
|
breadcrumbs |
Any of 2 types
This field is not returned by default To include it in the response, add Example
|
|
content |
Any of 2 types
This field is not returned by default Include Page content as a string. Example: |
|
last_revision_id |
Any of 2 types
This field is not returned by default Include Example: |
|
owner |
Any of 2 types
This field is not returned by default Include Page owner Example
|
|
redirect |
Any of 2 types
This field is not returned by default To include it in the response, add Returns Example
|
PageType
Page type.
Type: string
Enum: page, grid, cloud_page, wysiwyg, template
PageDetailsSchema
Brief page information
|
Name |
Description |
|
id |
Type: integer Page ID. In |
|
page_type |
Type: PageType Page type Page type. Enum: |
|
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 |
Any of 2 types
ID of the page that the current page redirects to. Example: |
|
redirect_target |
Any of 2 types
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 |
Any of 2 types
Page ID (if the page exists) Example: |
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_available_for_ai |
Type: boolean |
|
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 |
Any of 2 types
Collaborative editing is enabled Example: |
|
is_draft |
Any of 2 types
The page is a draft Example: |
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,
"is_available_for_ai": true
}
AccessTypeInheritedAPI
Inherited access type:
all_staff: Access for all employees.custom: Personal access permissions.
Type: string
Enum: all_staff, custom
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 |
Type: PageInviteStatus Invite link status: Invite link status:
Enum: Example: |
Example
{
"status": 0
}
PageAccessPolicySchema
Page access policy
|
Name |
Description |
|
access_type |
Type: PageAccessTypeAPI Access type Page access type:
Enum: |
|
all_staff_role |
Any of 2 types
Role for "All employees" access Example: |
|
has_external |
Any of 2 types
Indicates whether the page is accessible to external consultants. If Example: |
|
inherited_access_type |
Any of 2 types
Inherited access type Example: |
|
invite |
Any of 2 types
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 ID
|
Name |
Description |
|
cloud_uid |
Any of 2 types
User identifier in the cloud Example: |
|
uid |
Any of 2 types
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 |
Any of 2 types
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 |
Type: ComSource Identifier source Source of the group ID:
Enum: |
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 |
Any of 2 types
Number of external consultants in the group Example: |
|
url |
Any of 2 types
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 |
Type: ComIdentitySchema Group identifier in the system Group identifier Example
|
|
name |
Type: string Group name Example: |
|
type |
Type: GroupType Group type Group type:
Enum: |
|
id |
Any of 2 types
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 3 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 |
Type: RoleAPI Access role Page access role:
Enum: |
|
created_at |
Any of 2 types
Date and time the access was created Example: |
|
group |
Any of 2 types
Group granted access (populated if access was granted to a group) Example
|
|
inheritance |
Any of 2 types
Access inheritance setting for subpages Example: |
|
user |
Any of 2 types
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": null,
"cloud_uid": null
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"group": {
"id": "example",
"identity": {
"src": "dir",
"id": "example"
},
"name": "example",
"type": "wiki",
"metadata": {
"url": null,
"externals_count": null
},
"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": null,
"identity": {},
"name": "example",
"type": "wiki",
"metadata": null,
"members_count": 0
},
"role": "reader",
"inheritance": "inherited"
}
],
"by_link": [
null
],
"inherited": [
null
]
}
PageOwnerSchema
Page owner
|
Name |
Description |
|
group |
Any of 2 types
Group that owns the page Example
|
|
user |
Any of 2 types
User who owns the page Example
|
Example
{
"user": {
"id": 0,
"identity": {
"uid": null,
"cloud_uid": null
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"group": {
"id": "example",
"identity": {
"src": "dir",
"id": "example"
},
"name": "example",
"type": "wiki",
"metadata": {
"url": null,
"externals_count": null
},
"members_count": 0
}
}
ActualityStatus
Type: string
Enum: possibly_obsolete, unspecified, actual, obsolete
ActualitySchema
|
Name |
Description |
|
status |
Type: ActualityStatus Enum: |
|
actual_pages |
Any of 2 types
Example
|
|
comment |
Any of 2 types
Example: |
|
external_links |
Any of 2 types
Example
|
|
marked_at |
Any of 2 types
Example: |
|
user |
Any of 2 types
Example
|
Example
{
"status": "possibly_obsolete",
"marked_at": "2025-01-01T00:00:00Z",
"user": {
"id": 0,
"identity": {
"uid": null,
"cloud_uid": null
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"comment": "example",
"external_links": [
"example"
],
"actual_pages": [
{
"id": 0,
"slug": "example",
"title": "example",
"page_type": "page"
}
]
}
RevisionDraftInfo
Page revision draft details.
|
Name |
Description |
|
created_at |
Type: string<date-time> Date and time when the draft was created. Example: |
|
id |
Type: integer Page revision draft ID. |
|
modified_at |
Type: string<date-time> Date and time when the draft was last modified. Example: |
Example
{
"id": 0,
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z"
}
PublicPageRevisionStatusSchema
Type: string
Enum: pending_publication, published
PublicPageRevisionShortSchema
Page revision publication details.
|
Name |
Description |
|
status |
Type: PublicPageRevisionStatusSchema Publication status of the page revision. Enum: |
Example
{
"status": "pending_publication"
}
PageRevisionSchema
Page revision details.
|
Name |
Description |
|
author |
Type: UserSchema Page revision author. User information Example
|
|
created_at |
Type: string<date-time> Date and time when the page revision was created. Example: |
|
id |
Type: integer Page revision ID. |
|
page_type |
Type: PageType Page type. Enum: |
|
publication |
Any of 2 types
Publication state of the page revision. Example
|
|
revision_draft |
Any of 2 types
Page revision draft details. Example
|
Example
{
"id": 0,
"author": {
"id": 0,
"identity": {
"uid": "example",
"cloud_uid": "example"
},
"username": "example",
"display_name": "example",
"is_dismissed": true,
"affiliation": "example"
},
"created_at": "2025-01-01T00:00:00Z",
"page_type": "page",
"revision_draft": {
"id": 0,
"created_at": "2025-01-01T00:00:00Z",
"modified_at": "2025-01-01T00:00:00Z"
},
"publication": {
"status": "pending_publication"
}
}