toloka.client.TolokaClient.update_training
| Source code
update_training( self, training_id: str, training: Training)
Updates parameters of a training in Toloka.
Parameters | Type | Description |
---|---|---|
training_id | str | The ID of the training to be updated. |
training | Training | A training object with new parameter values. |
Returns:
The updated training.
Return type:
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 = 600toloka_client.update_training(training_id=updated_training.id, training=updated_training)
Last updated: August 28, 2023