update_training

toloka.async_client.client.AsyncTolokaClient.update_training | Source code

async update_training(
self,
training_id: str,
training: Training
)

Updates parameters of a training in Toloka.

Parameters description

ParametersTypeDescription
training_idstr

The ID of the training to be updated.

trainingTraining

A training object with new parameter values.

  • Returns:

    The updated training.

  • Return type:

    Training

Examples:

The example shows how to set new time limit in a training.

updated_training = toloka_client.get_training(training_id='1239110')
updated_training.assignment_max_duration_seconds = 600
toloka_client.update_training(training_id=updated_training.id, training=updated_training)

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