Toloka documentation

archive_pool

toloka.client.TolokaClient.archive_pool | Source code

archive_pool(self, pool_id: str)

Sends pool to archive

The pool must be in the status "closed". The archived pool is not deleted. You can access it when you will need it.

Parameters Description

Parameters Type Description
pool_id str

ID of pool that will be archived.

  • Returns:

    Object 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)