Create a training pool

Attention

The toloka.yandex.com domain will be disabled starting July 1, 2023. Please use the toloka.dev domain for API requests.

Creates a training pool (training).

The pool is automatically assigned an ID.

Restriction

You can send a maximum of 20 requests of this kind per minute and 100 requests per day. Refer to the Rate limiting section for the complete list of the request limitations in Toloka API.

Note

Learn about creating a main pool in Create a pool.

Request

Tip

Try our new API reference: more parameter details, request/response examples, and code samples in various programming languages, including the Toloka-Kit usage samples.

Production version
Sandbox
POST https://toloka.dev/api/v1/trainings
Authorization: OAuth <OAuth token>
Content-Type: application/JSON

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.
Content-TypeSpecifies the data format in the request body.

Request body

{
"project_id": "654321",
"private_name": "Selection for a labeling task",
"inherited_instructions": false,
"public_instructions": "Unpaid selection for a project: 10 tasks, 90% threshold.",
"may_contain_adult_content": false,
"assignment_max_duration_seconds": 600,
"mix_tasks_in_creation_order": true,
"shuffle_tasks_in_task_suite": true,
"training_tasks_in_task_suite_count": 10,
"task_suites_required_to_pass": 1,
"retry_training_after_days": 7
}
ParameterOverview
project_idstring | required

ID of the project that the training pool was created for.
private_namestring | required

Name of the training pool (only visible to the requester).
inherited_instructionsboolean | required

Indicates whether to use the project instructions. To provide separate instructions for the training, enter it in public_instructions.

The default value is false.
may_contain_adult_contentboolean | required

Whether the tasks contain adult content.
training_tasks_in_tasksuite_countinteger | required

Number of training tasks per suite.
task_suites_required_to_passinteger

Number of task suites the Toloker needs to complete to get a skill and access the general tasks.
public_instructionsstring

Instructions for completing a training task. You can use any HTML markup.
assignment_max_duration_secondsinteger

The time allowed for completing a task suite, in seconds. We recommend allowing no more than 60 seconds per task suite (including the time for loading the page and submitting responses).
mix_tasks_in_creation_order

boolean Whether training tasks are issued in their upload order:

  • true — Tasks are grouped into task suites in the order of rows in the uploaded file (top-to-bottom).
  • false — Tasks are taken at random. The default value is true.
shuffle_tasks_in_task_suite

boolean Whether training tasks are shuffled within each task suite:

  • true — Yes.
  • false — No, they are listed in their upload order. The default value is true.
retry_training_after_daysinteger

Number of days until retry becomes available.

Response

Contains information about the created training pool.

{
"id": "123456",
"project_id": "654321",
"private_name": "Selection for a labeling task",
"inherited_instructions": false,
"public_instructions": "Unpaid selection for a project: 10 tasks, 90% threshold.",
"may_contain_adult_content": false,
"assignment_max_duration_seconds": 600,
"mix_tasks_in_creation_order": true,
"shuffle_tasks_in_task_suite": true,
"training_tasks_in_task_suite_count": 10,
"task_suites_required_to_pass": 1,
"retry_training_after_days": 7,
"owner": {
"id": "ec00d2407f7241258d0faba610110d95",
"myself": true
},
"status": "CLOSED",
"created": "2021-02-24T18:12:57.962"
}

Besides parameters that are set when creating a training pool, it includes parameters that are assigned to the pool automatically:

ParameterOverview
idstring

ID of the training pool.
owner.idstring

Requester ID.
owner.myself

boolean

Checks who the object belongs to:

  • true — The user who made the request.
  • false — Another account (employee or owner).
status

string

Training pool status:

  • OPEN — Open.
  • CLOSED — Closed.
  • ARCHIVED — Archived.
createdstring

The UTC date and time when the training pool was created, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
Contact support
Toloka API
OverviewAccessing the APIRate limiting
Quick start
Reference
Project
Pools
Training
Subscriptions to events
Toloker selection
Ways to upload tasks
Tasks
Task suites
Tracking operations
Getting responses
Checking completed tasks
Bonuses
Messages for Tolokers
Various parameters
Libraries