archive_pool

toloka.client.TolokaClient.archive_pool | Source code

archive_pool(self, pool_id: str)

Archives a pool.

Only closed pools can be archived.

You can't open archived pools, but you can clone them if needed.

Parameters description

ParametersTypeDescription
pool_idstr

The ID of the pool to be archived.

  • Returns:

    The pool with updated status.

  • Return type:

    Pool

Examples:

closed_pool = next(toloka_client.get_pools(status='CLOSED'))
toloka_client.archive_pool(pool_id=closed_pool.id)

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