Add an attachment to the right panel in the editor via HTML.

Import

Parameter

Required

Description

attachments.type

Yes

Should be set to HTML.

attachments.value

Yes

Accepts an https path to a cloud-hosted text or HTML file. Will render as an iframe in the attachments panel.

[
     {
         "externalId": "basic.png",
         "imageUrl": "https://labelbox.s3-us-west-2.amazonaws.com/coregistered-images/basic.png",
         "attachments": [
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
             },
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
            }
         ]
     }
]
[
     {
         "externalId": "DesigningForGoogleCastVideo.mp4",
         "videoUrl": "https://commondatastorage.googleapis.com/gtv-videos-bucket/CastVideos/dash/DesigningForGoogleCastVideo.mp4",
         "attachments": [
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
             },
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
            }
         ]
     }
]
[
     {
         "externalId": "lorem-ipsum.txt",
         "data": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt",
         "attachments": [
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
             },
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
            }
         ]
     }
]
[
    {
        "externalId": "cklidhv7o0zdk0y4z4282dp6o",
        "tileLayerUrl": "https://s3-us-east-2.amazonaws.com/lb-ron/CACI/ron_mctiles/{z}/{x}/{y}.png",
        "bounds": [
            [
                19.405662413477728,
                -99.21052827588443
            ],
            [
                19.400498983095076,
                -99.20534818927473
            ]
        ],
        "minZoom": 12,
        "maxZoom": 20,
        "epsg": "EPSG4326",
        "version": 2,
         "attachments": [
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
             },
             {
                 "type": "HTML",
                 "value": "https://storage.googleapis.com/labelbox-sample-datasets/nlp/lorem-ipsum.txt"
             }
         ]
     }
]