Copying a page
Copies a page to a new address.
Asynchronous operation. If all checks pass, returns information on how to check its status.
Validation error codes (error_code)
IS_CLOUD_PAGE: Cloud pages cannot be cloned.SLUG_OCCUPIED: The cloned page would overlap an existing page.SLUG_RESERVED: Pages cannot be cloned to reserved addresses.FORBIDDEN: No access to the source page or the destination cluster.QUOTA_EXCEEDED: The page creation limit for the current organization has been reached.CLUSTER_BLOCKED: The cluster is temporarily locked for moving.
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}/clone
Path parameters
|
Name |
Description |
|
idx |
Type: integer Page ID. The value of |
Body
application/json
{
"target": "example",
"title": "example",
"subscribe_me": false
}
|
Name |
Description |
|
target |
Type: string The page address (slug) after copying Example: |
|
subscribe_me |
Type: boolean Subscribe to changes Default: |
|
title |
Any of 2 types
If provided, the title of the page after copying Example: |
Responses
200 OK
OK
Body
application/json
{
"operation": {
"type": "clone",
"id": "example"
},
"dry_run": false,
"status_url": "example"
}
|
Name |
Description |
||||
|
operation |
Type: B2BOperationIdentity
Asynchronous operation type and ID. Example
|
||||
|
status_url |
Type: string URL for retrieving operation progress information Example: |
||||
|
dry_run |
Type: boolean Indicates that execution conditions are checked without starting the operation. Default: |