The toloka.yandex.com
domain will be disabled starting July 1, 2023. Please use the toloka.dev
domain for API requests.
Starts aggregating responses to all completed tasks in the pool.
You can send a maximum of 5 requests of this kind per minute, 30 requests per hour, and 200 requests per day. Refer to the Rate limiting section for the complete list of the request limitations in Toloka API.
Try our new API reference: more parameter details, request/response examples, and code samples in various programming languages, including the Toloka-Kit usage samples.
POST https://toloka.dev/api/v1/aggregated-solutions/aggregate-by-poolAuthorization: OAuth <OAuth token>Content-Type: application/JSON
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Content-Type | Specifies the data format in the request body. |
{ "pool_id": "283", "type": "WEIGHTED_DYNAMIC_OVERLAP", "answer_weight_skill_id": "1289", "fields": [ { "name": "result" } ]}
Parameter | Overview |
---|---|
pool_id | string Pool ID. |
type | string
|
answer_weight_skill_id | string A skill that determines the weight of the Toloker's response. Required if the WEIGHTED_DYNAMIC_OVERLAP aggregation type is selected. |
fields | object Output data fields to use for aggregating responses. For best results, each of these fields must have a limited number of response options. If the DAWID_SKENE aggregation type is selected, you can only specify one value. |
fields.name | string The output data field name. |
Contains operation details: Check the operation status. When it is completed get the aggregation results.
{ "id": "fadfe3jk-fdafue2-fda32890-fdafdi23", "type": "SOLUTION.AGGREGATE", "status": "PEDNDING", "submitted": "2018-22-10T14:18:35", "progress" : 0, "parameters": { "pool_id": "283" }}
Parameter | Overview |
---|---|
id | string Operation ID. |
type | string
|
status | string
|
submitted | string The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss] . |
progress | integer The percentage of the operation completed. |
parameters | object Parameters of the operation in the request. |