Toloka documentation

patch_pool

toloka.client.TolokaClient.patch_pool | Source code

Changes the priority of the pool issue

Parameters Description

Parameters Type Description
pool_id str

ID of the pool that will be patched.

priority Optional[int]

The priority of the pool in relation to other pools in the project with the same task price and set of filters. Tolokers are assigned tasks with a higher priority first. Possible values: from -100 to 100.

  • Returns:

    Object with updated priority.

  • Return type:

    Pool

Examples:

Set the highest priority to a specified pool.

toloka_client.patch_pool(pool_id='1', priority=100)