Get Clone Operation Status
Returns the status of an asynchronous operation.
For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.
Request
GET
https://api.wiki.yandex.net/v1/operations/clone/{task_id}
Path parameters
|
Name |
Description |
|
task_id |
Type: string Asynchronous operation ID. Pass the Example: `` |
Responses
200 OK
OK
Body
application/json
{
"status": "scheduled",
"progress": {
"percentage": 0.5,
"details": "example"
},
"result": {
"page": {
"id": 0,
"slug": "example"
}
}
}
|
Name |
Description |
|
status |
All of 1 type
Asynchronous operation state. Example: |
|
progress |
All of 1 type
Operation progress information. Populated in the in_progress state. Example
|
|
result |
All of 1 type
The result of a completed operation. Populated in the success and failed states. Example
|
Status
An enumeration.
Type: string
Enum: scheduled, in_progress, success, failed
Progress
|
Name |
Description |
|
details |
Type: string Text description of the operation progress. Example: |
|
percentage |
Type: number Fraction of work completed. For example, 0.5 corresponds to 50%. |
Example
{
"percentage": 0.5,
"details": "example"
}
PageSchema
|
Name |
Description |
|
id |
Type: integer Page ID. In |
|
slug |
Type: string Page address relative to the Wiki root, such as Example: |
Example
{
"id": 0,
"slug": "example"
}
PageCloneResponse
|
Name |
Description |
|
page |
All of 1 type
The cloned page Example
|
Example
{
"page": {
"id": 0,
"slug": "example"
}
}