# Assignment

toloka.client.assignment.Assignment | Source code

Assignment(
self,
*,
id: Optional[str] = None,
pool_id: Optional[str] = None,
user_id: Optional[str] = None,
status: Union[Status, str, None] = None,
reward: Optional[Decimal] = None,
automerged: Optional[bool] = None,
created: Optional[datetime] = None,
submitted: Optional[datetime] = None,
accepted: Optional[datetime] = None,
rejected: Optional[datetime] = None,
skipped: Optional[datetime] = None,
expired: Optional[datetime] = None,
first_declined_solution_attempt: Optional[List[Solution]] = None,
solutions: Optional[List[Solution]] = None,
mixed: Optional[bool] = None,
public_comment: Optional[str] = None
)


## Parameters Description

Parameters Type Description
id Optional[str]

ID of the task suite assignment to a performer.

task_suite_id Optional[str]

pool_id Optional[str]

ID of the pool that the task suite belongs to.

user_id Optional[str]

ID of the performer who was assigned the task suite.

status Optional[Status]

Status of an assigned task suite.

• ACTIVE - In the process of execution by the performer.
• SUBMITTED - Completed but not checked.
• ACCEPTED - Accepted by the requester.
• REJECTED - Rejected by the requester.
• SKIPPED - Skipped by the performer.
• EXPIRED - The time for completing the tasks expired.

reward Optional[Decimal]

tasks Optional[List[Task]]

automerged Optional[bool]

Flag of the response received as a result of merging identical tasks. Value:

• True - The response was recorded when identical tasks were merged.
• False - Normal performer response.

created Optional[datetime]

The date and time when the task suite was assigned to a performer.

submitted Optional[datetime]

The date and time when the task suite was completed by a performer.

accepted Optional[datetime]

The date and time when the responses for the task suite were accepted by the requester.

rejected Optional[datetime]

The date and time when the responses for the task suite were rejected by the requester.

skipped Optional[datetime]

The date and time when the task suite was skipped by the performer.

expired Optional[datetime]

The date and time when the time for completing the task suite expired.

first_declined_solution_attempt Optional[List[Solution]]

For training tasks. The performer's first responses in the training task (only if these were the wrong answers). If the performer answered correctly on the first try, the first_declined_solution_attempt array is omitted. Arrays with the responses (output_values) are arranged in the same order as the task data in the tasks array.

solutions Optional[List[Solution]]

performer responses. Arranged in the same order as the data for tasks in the tasks array.

mixed Optional[bool]

Type of operation for creating a task suite:

• True - Automatic ("smart mixing").
• False - Manually.

public_comment Optional[str]

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