Archive 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.

Moves a training pool to the archive.

If a training pool isn't in use, it can be moved to the archive. Before archiving, check two conditions:

  • The training pool must have the "closed" status.
  • All the main pools that the training pool is linked to must be sent to the archive.

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/<training_id>/archive
Authorization: OAuth <OAuth token>

Path parameters

ParameterOverview
training_idPool ID.

Headers

TitleOverview
AuthorizationA token for account authorization. Add OAuth as a prefix.

Response

Note

If the training pool is already archived, attempting to archive it again returns an empty response with status 204.

{
"id": "95029e60-eace-4a3e-96b9-c72c5e727218",
"type": "TRAINING.ARCHIVE",
"status": "SUCCESS",
"submitted": "2021-02-26T10:13:32.921",
"started": "2021-02-26T10:13:32.921",
"finished": "2021-02-26T10:13:32.921",
"progress": 100,
"parameters": {
"training_id": "123456"
},
"details": {}
}
ParameterOverview
idstring

Operation ID.
typestring

Type of operation: TRAINING.ARCHIVE — Archive a training pool.
status

string

The status of the operation:

  • PENDING — Not started yet.
  • RUNNING — In progress.
  • SUCCESS — Completed successfully.
  • FAIL — Not completed.
submittedstring

The UTC date and time the request was sent, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
startedstring

The UTC date and time the operation started, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
finishedstring

The UTC date and time the operation was completed, in ISO 8601 format: YYYY-MM-DDThh:mm:ss[.sss].
progressinteger

The percentage of the operation completed.
parameters.training_idstring

ID of the training pool.
detailsobject

Details of the operation completion.
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