Toloka documentation

AssignmentSearchRequest

toloka.client.search_requests.AssignmentSearchRequest | Source code

AssignmentSearchRequest(
    self,
    status: Union[str, Assignment.Status, List[Union[str, Assignment.Status]], None] = None,
    task_id: Optional[str] = None,
    task_suite_id: Optional[str] = None,
    pool_id: Optional[str] = None,
    user_id: Optional[str] = None,
    id_lt: Optional[str] = None,
    id_lte: Optional[str] = None,
    id_gt: Optional[str] = None,
    id_gte: Optional[str] = None,
    created_lt: Optional[datetime] = None,
    created_lte: Optional[datetime] = None,
    created_gt: Optional[datetime] = None,
    created_gte: Optional[datetime] = None,
    submitted_lt: Optional[datetime] = None,
    submitted_lte: Optional[datetime] = None,
    submitted_gt: Optional[datetime] = None,
    submitted_gte: Optional[datetime] = None,
    accepted_lt: Optional[datetime] = None,
    accepted_lte: Optional[datetime] = None,
    accepted_gt: Optional[datetime] = None,
    accepted_gte: Optional[datetime] = None,
    rejected_lt: Optional[datetime] = None,
    rejected_lte: Optional[datetime] = None,
    rejected_gt: Optional[datetime] = None,
    rejected_gte: Optional[datetime] = None,
    skipped_lt: Optional[datetime] = None,
    skipped_lte: Optional[datetime] = None,
    skipped_gt: Optional[datetime] = None,
    skipped_gte: Optional[datetime] = None,
    expired_lt: Optional[datetime] = None,
    expired_lte: Optional[datetime] = None,
    expired_gt: Optional[datetime] = None,
    expired_gte: Optional[datetime] = None
)

Parameters for searching assignment

Parameters Description

Parameters Type Description
status Optional[List[Assignment.Status]]

Status of an assigned task suite (Detailed status description in Assignment.Status):

  • ACTIVE
  • SUBMITTED
  • ACCEPTED
  • REJECTED
  • SKIPPED
  • EXPIRED

task_id Optional[str]

The task ID in suites generated automatically using "smart mixing". You will get responses for task suites that contain the specified task.

task_suite_id Optional[str]

ID of a task suite.

pool_id Optional[str]

Pool ID.

user_id Optional[str]

Performer ID.

id_lt Optional[str]

Task suites with an assignment ID less than the specified value.

id_lte Optional[str]

Task suites with an assignment ID less than or equal to the specified value.

id_gt Optional[str]

Task suites with an assignment ID greater than the specified value.

id_gte Optional[str]

Task suites with an assignment ID greater than or equal to the specified value.

created_lt Optional[datetime]

Task suites assigned before the specified date.

created_lte Optional[datetime]

Task suites assigned before or on the specified date.

created_gt Optional[datetime]

Task suites assigned after the specified date.

created_gte Optional[datetime]

Task suites assigned after or on the specified date.

submitted_lt Optional[datetime]

Task suites completed before the specified date.

submitted_lte Optional[datetime]

Task suites completed before or on the specified date.

submitted_gt Optional[datetime]

Task suites completed after the specified date.

submitted_gte Optional[datetime]

Task suites completed after or on the specified date.

accepted_lt Optional[datetime]

Task suites accepted before the specified date.

accepted_lte Optional[datetime]

Task suites accepted before or on the specified date.

accepted_gt Optional[datetime]

Task suites accepted after the specified date.

accepted_gte Optional[datetime]

Task suites accepted after or on the specified date.

rejected_lt Optional[datetime]

Task suites rejected before the specified date.

rejected_lte Optional[datetime]

Task suites rejected before or on the specified date.

rejected_gt Optional[datetime]

Task suites rejected after the specified date.

rejected_gte Optional[datetime]

Task suites rejected after or on the specified date.

skipped_lt Optional[datetime]

Task suites skipped before the specified date.

skipped_lte Optional[datetime]

Task suites skipped before or on the specified date.

skipped_gt Optional[datetime]

Task suites skipped after the specified date.

skipped_gte Optional[datetime]

Task suites skipped after or on the specified date.

expired_lt Optional[datetime]

Task suites expired before the specified date.

expired_lte Optional[datetime]

Task suites expired before or on the specified date.

expired_gt Optional[datetime]

Task suites expired after the specified date.

expired_gte Optional[datetime]

Task suites expired after or on the specified date.