Check tasks

You can review assignments manually and reject them if they weren't completed satisfactorily. To accept or reject received responses, change the status of the task suite using a PATCH request to the resource /assignments/<task suite assignment ID>:

  • Accept responses: change SUBMITTED to ACCEPTED.

  • Reject responses: change SUBMITTED to REJECTED.

  • Change a rejection decision: change REJECTED to ACCEPTED.

To resend rejected tasks to be completed by other users, add a quality control rule to the pool (see Recompletion of assignments).

Request

PATCH /api/v1/assignments/<task suite assignment ID>
Host: https://sandbox.toloka.yandex.com
Authorization: OAuth <OAuth token>
Content-Type: application/JSON

{
  "status": "ACCEPTED",
  "public_comment": "Well done!"
}

Response

The response contains the changed values of fields:

{
  "status": "ACCEPTED",
  "public_comment": "Well done!",
  "bonus_ids": [10]
}
Key descriptions

Key

Value

Data type

Required

status

Status of an assigned task suite. If you need to list multiple statuses, separate them with commas:

  • ACTIVE — Being completed by a user.

  • SUBMITTED — Completed but not checked.

  • ACCEPTED — Accepted by the requester.

  • REJECTED — Rejected by the requester.

  • SKIPPED — Skipped by the user.

  • EXPIRED — The time for completing the tasks expired.

String

No

public_comment

A comment for the user.

Maximum length: 2048 characters.

String

No

bonus_ids

IDs of rewards issued.

Array

No

Key

Value

Data type

Required

status

Status of an assigned task suite. If you need to list multiple statuses, separate them with commas:

  • ACTIVE — Being completed by a user.

  • SUBMITTED — Completed but not checked.

  • ACCEPTED — Accepted by the requester.

  • REJECTED — Rejected by the requester.

  • SKIPPED — Skipped by the user.

  • EXPIRED — The time for completing the tasks expired.

String

No

public_comment

A comment for the user.

Maximum length: 2048 characters.

String

No

bonus_ids

IDs of rewards issued.

Array

No