Getting the status of an inline table 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_inline_grid/{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": {
"grid": {
"id": 0,
"slug": "example"
},
"page": null,
"grid_id": "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"
}
GridCloneResponse
|
Name |
Description |
|
grid_id |
Any of 2 types
ID of the copied dynamic table. Example: |
|
page |
Type: PageSchema The page to which the dynamic table was copied Example
|
|
grid |
Any of 2 types
During the transition period, the page schema for the legacy table type Example
|
Example
{
"grid": {
"id": 0,
"slug": "example"
},
"page": null,
"grid_id": "example"
}