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 | Type | Description |
---|---|---|
id | Optional[str] | The file ID. |
name | Optional[str] | The file name. |
details | Optional[Attachment.Details] | Attachment details: a pool, task, and Toloker who uploaded the file. |
created | Optional[datetime] | The date and time when the file was uploaded. |
media_type | Optional[str] | The file MIME data type. |
owner | Optional[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