patch_assignment

toloka.async_client.client.AsyncTolokaClient.patch_assignment | Source code

Changes an assignment status and associated public comment.

See also reject_assignment and accept_assignment.

Parameters description

ParametersTypeDescription
assignment_idstr

The ID of the assignment.

public_commentOptional[str]

The public comment.

statusOptional[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='00001092da--61ef030400c684132d0da0de',
public_comment='Accepted. Good job.',
status='ACCEPTED'
)

Last updated: August 28, 2023

Toloka-Kit
OverviewGetting API keyQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming