toloka.client.TolokaClient.update_pool
| Source code
update_pool( self, pool_id: str, pool: Pool)
Updates all pool parameters in Toloka.
Parameters | Type | Description |
---|---|---|
pool_id | str | The ID of the pool to be updated. |
pool | Pool | The pool with new parameters. |
Returns:
The pool with updated parameters.
Return type:
Examples:
updated_pool = toloka_client.get_pool(pool_id='1544394')updated_pool.will_expire = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(days=30)toloka_client.update_pool(pool_id=updated_pool.id, pool=updated_pool)
Last updated: August 28, 2023