Toloka documentation

patch_assignment

toloka.client.TolokaClient.patch_assignment

Changes status and comment on assignment

It's better to use methods "reject_assignment" and "accept_assignment".

Parameters Description

Parameters Type Description
assignment_id str

What assignment will be affected.

public_comment Optional[str]

Public comment about an assignment. Why it was accepted or rejected.

status Optional[Assignment.Status]

Status of an assigned task suite.

  • ACCEPTED - Accepted by the requester.
  • REJECTED - Rejected by the requester.

  • Returns:

    Object with new status.

  • Return type:

    Assignment

Examples:

toloka_client.patch_assignment(assignment_id='1', public_comment='Some issues present, but work is acceptable', status='ACCEPTED')