Toloka documentation

AttachmentSearchRequest

toloka.client.search_requests.AttachmentSearchRequest | Source code

AttachmentSearchRequest(
    self,
    name: Optional[str] = None,
    type: Optional[Attachment.Type] = None,
    user_id: Optional[str] = None,
    assignment_id: Optional[str] = None,
    pool_id: Optional[str] = None,
    owner_id: Optional[str] = None,
    owner_company_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
)

Parameters for searching attachment

Parameters Description

Parameters Type Description
name Optional[str]

File name.

type Optional[Attachment.Type]

Attachment type. Currently the key can have only one value - ASSIGNMENT_ATTACHMENT.

user_id Optional[str]

ID of the user who uploaded the file(s).

assignment_id Optional[str]

Assignment ID.

pool_id Optional[str]

Pool ID.

owner_id Optional[str]

Optional[str]

owner_company_id Optional[str]

Optional[str]

id_lt Optional[str]

Files with an ID less than the specified value.

id_lte Optional[str]

Files with an ID less than or equal to the specified value.

id_gt Optional[str]

Files with an ID greater than the specified value.

id_gte Optional[str]

Files with an ID greater than or equal to the specified value.

created_lt Optional[datetime]

Files uploaded by users before the specified date.

created_lte Optional[datetime]

Files uploaded by users before or on the specified date.

created_gt Optional[datetime]

Files uploaded by users after the specified date.

created_gte Optional[datetime]

Files uploaded by users after or on the specified date.