@@ -23,7 +23,8 @@ class DataRow(DbObject, Updateable, BulkDeletable):
2323 created_by (Relationship): `ToOne` relationship to User
2424 organization (Relationship): `ToOne` relationship to Organization
2525 labels (Relationship): `ToMany` relationship to Label
26- metadata (Relationship): `ToMany` relationship to AssetMetadata
26+ attachments (Relationship) `ToMany` relationship with AssetAttachment
27+ metadata (Relationship): This Relationship is Deprecated. Please use `DataRow.attachments()` instead
2728 predictions (Relationship): `ToMany` relationship to Prediction
2829 """
2930 external_id = Field .String ("external_id" )
@@ -70,14 +71,15 @@ def __init__(self, *args, **kwargs):
7071 self .attachments .supports_sorting = False
7172
7273 def create_attachment (self , attachment_type , attachment_value ):
73- """ Attaches asset metadata to a DataRow.
74+ """ Adds an AssetAttachment to a DataRow.
75+ Labelers can view these attachments while labeling.
7476
7577 >>> datarow.create_attachment("TEXT", "This is a text message")
7678
7779 Args:
78- meta_type (str): Asset attachment type, must be one of:
80+ attachment_type (str): Asset attachment type, must be one of:
7981 VIDEO, IMAGE, TEXT, IMAGE_OVERLAY (AssetAttachment.AttachmentType)
80- meta_value (str): Asset attachment value.
82+ attachment_value (str): Asset attachment value.
8183 Returns:
8284 `AssetAttachment` DB object.
8385 Raises:
0 commit comments