Toloka documentation

accept_assignment

toloka.client.TolokaClient.accept_assignment | Source code

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

Accepts an assignment.

Parameters Description

Parameters Type Description
assignment_id str

The ID of the assignment.

public_comment str

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!')