Get operation details
Gets operation details.
Request
GET https://toloka.yandex.com/api/v1/operations/<operation_id>
Authorization: OAuth <OAuth token>
GET https://sandbox.toloka.yandex.com/api/v1/operations/<operation_id>
Authorization: OAuth <OAuth token>
Path parameters
Parameter | Overview |
---|---|
operation_id | Operation ID. |
Parameter | Overview |
---|---|
operation_id | Operation ID. |
Headers
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Response
Contains operation details in JSON format (see the example in the Operations section).
{
"id" : "57068577e4b0bf7b07a0256f",
"type" : "TASK_SUITE.BATCH_CREATE",
"status" : "FAIL",
"submitted" : "2016-04-07T16:06:15.902",
"started" : "2016-04-07T16:06:15.902",
"finished" : "2016-04-07T16:06:15.902",
"progress" : 100,
"parameters" : {
"open_pool" : fase,
"allow_defaults" : false,
"skip_invalid_items" : false
},
"details" : {
"total_count" : 2,
"valid_count" : 0,
"failed_count" : 2,
"success_count" : 0,
"not_valid_count" : 2
}
}
Parameter | Overview |
---|---|
id | string | mandatory Operation ID. |
type | string | mandatory Operation type:
|
status | string | mandatory The status of the operation:
|
submitted | string | mandatory The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. |
started | string The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. |
finished | string The UTC date and time the operation finished, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. |
progress | integer The percentage of the operation completed. |
parameters | JSON Operation parameters (depending on the operation type). |
details | JSON Details of the operation completion. |
Parameter | Overview |
---|---|
id | string | mandatory Operation ID. |
type | string | mandatory Operation type:
|
status | string | mandatory The status of the operation:
|
submitted | string | mandatory The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. |
started | string The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. |
finished | string The UTC date and time the operation finished, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss]. |
progress | integer The percentage of the operation completed. |
parameters | JSON Operation parameters (depending on the operation type). |
details | JSON Details of the operation completion. |
The response doesn't provide a detailed error description. If an error has occurred, request the operation log.