The toloka.yandex.com
domain will be disabled starting May 1, 2023. Please use the toloka.dev
domain for API requests.
Creates multiple task suites.
You can add a maximum of 100,000 tasks per minute and a maximum of 2,000,000 tasks per day. Refer to the Rate limiting section for the complete list of the request limitations in Toloka API.
POST https://toloka.dev/api/v1/task-suitesAuthorization: OAuth <OAuth token>Content-Type: application/JSON[{task suite 1}, {task suite 2},... {task suite N}]
Title | Overview |
---|---|
Authorization | A token for account authorization. Add OAuth as a prefix. |
Content-Type | Specifies the data format in the request body. |
Specified in the link after the question mark; separated by &
.
Parameter | Overview |
---|---|
async_mode | boolean |
allow_defaults | boolean
|
skip_invalid_items | boolean
|
open_pool | boolean Open the pool immediately after the operation is completed, if the pool is closed. The default value is false . |
operation_id | string Operation ID for asynchronously loading one or more task suites (if async_mode=true ).We recommend sending the ID in the POST request to avoid accidental errors, such as creating the operation multiple times for the same task suites. The ID should conform to the RFC4122 standard. You can use this ID in the future to get information about the operation. |
The response format depends on the value of async_mode.
{ "items": { "0": {<task suite>}, "2": {<task suite>}, ... "<n>": {<task suite N>} }, "validation_errors": { "1": {<validation errors for the task suite>}, "3": {<validation errors for the task suite>}, ... "<n>": {<validation errors for task suite N>} }}
Parameter | Overview |
---|---|
items | object An object with the created task suites. |
validation_errors | object An object with the errors in task suites. Returned if the request has the parameter skip_invalid_items=true . |
<n> | object Sequential number of the task suite in the array (starting from 0). |