accept_assignment

toloka.client.TolokaClient.accept_assignment | Source code

accept_assignment(
self,
assignment_id: str,
public_comment: str
)

Accepts an assignment.

Parameters Description

ParametersTypeDescription
assignment_idstr

The ID of the assignment.

public_commentstr

A comment visible to Tolokers.

  • Returns:

    The assignment object with the updated status field.

  • Return type:

    Assignment

Examples:

Accepting an assignment.

toloka_client.accept_assignment(assignment_id, 'Well done!')
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming