Toloka documentation

AssignmentPatch

toloka.client.assignment.AssignmentPatch | Source code

AssignmentPatch(
    self,
    *,
    public_comment: Optional[str] = None,
    status: Optional[Assignment.Status] = None
)

The new status of an assignment.

It is used in the patch_assignment method to accept or reject an assignment and to leave a comment.

Parameters Description

Parameters Type Description
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.