Toloka documentation

patch_assignment

toloka.client.TolokaClient.patch_assignment | Source code

Changes an assignment status and associated public comment.

See also reject_assignment and accept_assignment.

Parameters Description

Parameters Type Description
assignment_id str

The ID of the assignment.

public_comment Optional[str]

The public comment.

status Optional[Assignment.Status]

The new status of an assignment:

  • ACCEPTED — Accepted by the requester.
  • REJECTED — Rejected by the requester.
  • Returns:

    Assignment object with updated fields.

  • Return type:

    Assignment

Examples:

toloka_client.patch_assignment(assignment_id='1', public_comment='Accepted. Good job.', status='ACCEPTED')