Attachment

toloka.client.attachment.Attachment | Source code

Attachment(
self,
*,
id: Optional[str] = None,
name: Optional[str] = None,
details: Optional[Details] = None,
created: Optional[datetime] = None,
media_type: Optional[str] = None,
owner: Optional[Owner] = None
)

An attachment.

Files attached to tasks by Tolokers are uploaded to Toloka.

Parameters description

ParametersTypeDescription
idOptional[str]

The file ID.

nameOptional[str]

The file name.

detailsOptional[Details]

Attachment details: a pool, task, and Toloker who uploaded the file.

createdOptional[datetime]

The date and time when the file was uploaded.

media_typeOptional[str]

The file MIME data type.

ownerOptional[Owner]

The owner of the attachment.

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