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 | 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='1')updated_training.assignment_max_duration_seconds = 600toloka_client.update_training(training_id=updated_training.id, training=updated_training)