AssignmentAttachment

toloka.client.attachment.AssignmentAttachment | Source code

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

An attachment to an assignment.

Parameters description

ParametersTypeDescription
idOptional[str]

The file ID.

nameOptional[str]

The file name.

detailsOptional[Attachment.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.

Examples:

attachment = toloka_client.get_attachment(attachment_id='0983459b-e26f-42f3-a5fd-6e3feee913e7')
print(attachment.id, attachment.name)

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