Remove skill from Toloker

Remove the skill from the Toloker using the ID of the "skill-Toloker" pair.

Steps to follow

1. Import Toloka-Kit

Connect the Toloka-Kit library to your script.

import toloka.client as toloka

2. Instantiate TolokaClient

Replace the sample API key with your own one.

toloka_client = toloka.
TolokaClient
('PlaceYourRealApiKey_Here', 'PRODUCTION');

3. Remove Toloker skill

Find out the ID of the "skill-Toloker" pair. This ID is unique for each Toloker having a skill assigned to them. Use the delete_user_skill() method to remove the skill from the Toloker.

toloka_client.
delete_user_skill
(user_skill_id='54116339')

If everything goes as expected, the request will return an empty response.

Complete code: Remove skill from Toloker

import toloka.client as toloka
toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')
toloka_client.delete_user_skill(user_skill_id='54116339')
List of classes and methods used in this recipe

See also

Last updated: February 7, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming