Skip to main content
Before importing your custom metadata, we recommend importing a metadata schema. Schemas help Encord validate your custom metadata and instruct Index and Active how to display it.
To manage custom metadata across multiple teams, we recommend using namespaced keys in your schema. This helps avoid conflicts—for example, one team might use video.description, while another uses audio.description or TeamName.MetadataKey. It keeps things organized and clear across departments.

Benefits of Using a Metadata Schema

Using a metadata schema provides several benefits:
  • Validation: Ensures that all custom metadata conforms to predefined data types, reducing errors during data registration and processing.
  • Consistency: Maintains uniformity in data types across different datasets and projects, which simplifies data management and analysis.
  • Filtering and Sorting: Enhances the ability to filter and sort data efficiently in the Encord platform, enabling more accurate and quick data retrieval.

Metadata Schema Table

  • Metadata Schema keys support letters (a-z, A-Z), numbers (0-9), and blank spaces ( ), hyphens (-), underscores (_), and periods (.). Metadata schema keys are case sensitive.
  • If you are unsure about the type to assign to a metadata key, we recommend using varchar as a versatile default.
Use .add_scalar() to add a scalar key to your metadata schema. Use add_enum and add_enum_options to add an enum and enum options to your metadata schema. Use add_embedding to add an embedding to your metadata schema. Use add_geospatial to add a new geospatial type to the metadata schema.
  • Geospatial custom metadata is supported only in Index.
  • Geospatial custom metadata can be applied to all data unit types and on individual frames in videos.
Incorrectly specifying a data type in the schema can cause errors when filtering in Index or Active. To fix this, check your schema, correct any issues, re-import it, and re-sync your Active project.
While still supported, we STRONGLY RECOMMEND that you use the latest metadata schema instructions.
Incorrectly specifying a data type in the schema can cause errors when filtering your data in Index or Active. If you encounter errors while filtering, verify your schema is correct. If your schema has errors, correct the errors, re-import the schema, and then re-sync your Active Project.

Import Your Metadata Schema to Encord


This is supported, as is, we STRONGLY RECOMMEND that you use the most current method of creating your custom metadata schema.

Verify Your Schema

After importing your schema to Encord we recommend that you verify that the import is successful. Run the following code to verify your metadata schema imported and that the schema is correct.

This is supported, as is, we STRONGLY RECOMMEND that you use the most current method of creating your custom metadata schema.

Edit Schema Keys

You can change the data type of schema keys using the .set_scalar() method. The example below shows how to update the data type for multiple metadata fields.
Restore Schema Key

Delete Schema Keys

Schema key options cannot be deleted. Instead, we recommend creating new schema key options to meet your needs and phasing out any that are no longer required.
You can delete schema keys using the .delete() method. There are two types of deletion: hard delete and soft delete. A hard delete permanently removes the key, making it impossible to restore. A soft delete allows you to restore the key later using the .restore_key() method. The following examples show hard delete and soft deletion of a schema key called Fruit.

Restore Schema Keys

Keys that have been soft deleted can be restored using the .restore_key() method. The following example restores a schema key called Fruit.
Restore Schema Key