archive_training

toloka.client.TolokaClient.archive_training | Source code

archive_training(self, training_id: str)

Archives a training.

Only closed trainings can be archived.

You can access archived trainings later.

Parameters description

ParametersTypeDescription
training_idstr

The ID of the training to be archived.

  • Returns:

    The training with updated status.

  • Return type:

    Training

Examples:

closed_training = next(toloka_client.get_trainings(status='CLOSED'))
toloka_client.archive_training(training_id=closed_training.id)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming