Move the project which you no longer use into archive.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample OAuth token with your own one.
toloka_client = toloka.('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION');
Find out the ID of the project which you want to archive. Then call the archive_project()
method.
archived_project = toloka_client.('117493')
The archive_project()
request will return the Project class object. You can use its attributes to print the information you need.
print(archived_project.id, archived_project.status)
You should get an output with the project ID and the updated status which looks like this.
117493 ProjectStatus.ARCHIVED
import toloka.client as tolokatoloka_client = toloka.TolokaClient('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')archived_project = toloka_client.archive_project('117493')print(archived_project.id, archived_project.status)