Move the pool which you no longer use into archive.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample API key with your own one.
toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION');
Find out the ID of the pool you want to archive. Then call the archive_pool()
method.
archived_pool = toloka_client.archive_pool('1443992')
The archive_pool()
request will return the Pool class object. You can use its attributes to print the information you need.
print(archived_pool.id, archived_pool.status)
You should get an output with the pool ID and the updated status which looks like this.
1443992 Status.ARCHIVED
import toloka.client as tolokatoloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')archived_pool = toloka_client.archive_pool('1443992')print(archived_pool.id, archived_pool.status)
Last updated: February 7, 2023