update_pool

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

async update_pool(
self,
pool_id: str,
pool: Pool
)

Updates all pool parameters in Toloka.

Parameters description

ParametersTypeDescription
pool_idstr

The ID of the pool to be updated.

poolPool

The pool with new parameters.

  • Returns:

    The pool with updated parameters.

  • Return type:

    Pool

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

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