Getting the status of a copy operation
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 |
Type: Status Asynchronous operation state. An enumeration. Enum: |
|
progress |
Any of 2 types
Operation progress information. Populated in the in_progress state. Example
|
|
result |
Any of 2 types
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 |
Type: PageSchema The cloned page Example
|
Example
{
"page": {
"id": 0,
"slug": "example"
}
}