Skip to main content

Open in Colab

GitHub

Metadata types

All metadata needs to be one of the following types:

Reserved fields

The following field names are reserved and cannot be used as custom metadata field names:

Construct metadata fields

To construct a metadata field, you must provide the Schema ID for the field and the value that will be uploaded. You can do this in two ways:
  • Option 1: Specify the metadata using the DataRowMetadataField object (comes with validation for metadata fields)
  • Option 2: Specify the metadata fields in dictionary format without declaring the DataRowMetadataField objects
The Metadata value attribute should not be null.

Create custom metadata schema

Upload data rows with metadata

Custom metadata field limits vary according to your subscription; for details, see Limits.

Get metadata schema

Get metadata fields (ontology)

Get metadata fields

Result:

Bulk export data rows with metadata

Result:

Export metadata by data row ID

You can bulk export metadata by data row with the SDK.

Delete metadata fields from a data row

Upsert metadata to existing data rows

Labelbox supports individual or bulk metadata upsert of data rows. Metadata overwrites occur on a per-field basis.

Update metadata schema

You can update any custom metadata schema’s name. However, the type cannot be modified. You also cannot modify the names of reserved fields.

Delete metadata schema

You can delete a metadata schema by name.