Remove restriction from Tolokers and restore their access to tasks.
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 ban. This ID is unique for each Toloker whom you banned on your projects or pools. Use the delete_user_restriction()
method to remove the skill from the Toloker.
toloka_client.delete_user_restriction(user_restriction_id='163293423')
If everything goes as expected, the request will return an empty response.
import toloka.client as tolokatoloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')toloka_client.delete_user_restriction(user_restriction_id='163293423')
Last updated: July 19, 2023