Stay organized with collections
Save and categorize content based on your preferences.
Create metadata instances
This guide describes how to create cloud metadata instances in Metadata
buckets. Manufacturing Data Engine (MDE) provides two ways of creating metadata instances:
Over the Metadata API or web interface (all buckets).
Dynamically from parsers (record and tag buckets only).
Metadata instances creation over the metadata API or Console
You can create metadata instances over the Metadata API or the
MDE UI. You
can use the API to load metadata instances into MDE from
external sources and to populate lookup buckets with reference data.
Create a cloud metadata instance with the following instructions for REST API
calls or the console:
REST
POST metadata/v1/buckets/BUCKET_NAME/BUCKET_VERSION/instances
BUCKET_NAME with the name of the bucket in which to create a metadata
instance.
BUCKET_VERSION with the version of the metadata bucket in which to
create a metadata instance.
NATURAL_KEY with the natural key of the metadata instance. It must be
tagName if BUCKET_NAME corresponds to a tag bucket. If BUCKET_NAME
corresponds to a record bucket and the natural key is omitted, the
natural key is automatically set to the hash of the value.
METADATA_INSTANCE_OBJECT with the metadata instance object. The metadata
instance object must conform to the schema defined for the BUCKET_NAME
and BUCKET_VERSION.
Console
Open the 'CLOUD TAGS' section of the top menu of the
UI to create a Metadata Instance. The default
view provides a list of the available Tags in the MDE
instance:
The UI only supports editing Tag Metadata Buckets. Other Bucket types
instances can only be created using the API. To create a
Tag Metadata Instance:
Click the 'ACTIONS' icon in the selected Tag from the list.
Select 'View / Edit'.
In the 'Edit Tag' side menu, locate the 'Tag Metadata' section to
edit or add a new Metadata Instance.
Click the Badge of the Bucket you want to implement. The attributes of the bucket
appear underneath.
Modify the existing attributes or add new ones as needed.
Those attributes are editable and can be modified.
Add the selected values in each box of the form.
After the instance is complete click the 'SAVE'.
The instance is then validated against the Bucket
schema(s). If the validation is successful, the instance is stored and a
success message is displayed. This instance becomes the current valid
instance qualifying the new Records received for this Tag.
Metadata instances creation dynamically from parsers
Metadata instances can be created dynamically from parsers when you use the
lookup by value method of resolving metadata instance references. When you use
the lookup by value method, and the latest metadata instance value for the
provided natural key does not exist, MDE automatically creates
a new metadata instance for the natural key from the instance object defined
the in the proto record. See the documentation on
how to resolve metadata instance_id by instance value
for more details.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-25 UTC."],[],[],null,["# Create metadata instances\n=========================\n\nThis guide describes how to create cloud metadata instances in *Metadata\nbuckets*. Manufacturing Data Engine (MDE) provides two ways of creating metadata instances:\n\n1. Over the Metadata API or web interface (all buckets).\n2. Dynamically from parsers (record and tag buckets only).\n\nBefore you begin\n----------------\n\nTo complete this guide, you need the have already\n[created a metadata bucket](/manufacturing-data-engine/docs/guides/model/how-to-create-a-metadata-bucket).\n\nMetadata instances creation over the metadata API or Console\n------------------------------------------------------------\n\nYou can create metadata instances over the Metadata API or the\nMDE UI. You\ncan use the API to load metadata instances into MDE from\nexternal sources and to populate lookup buckets with reference data.\n\nCreate a cloud metadata instance with the following instructions for REST API\ncalls or the console: \n\n### REST\n\n`POST metadata/v1/buckets/`\u003cvar translate=\"no\"\u003eBUCKET_NAME\u003c/var\u003e`/`\u003cvar translate=\"no\"\u003eBUCKET_VERSION\u003c/var\u003e`/instances` \n\n {\n \"naturalKey\": \"\u003cvar translate=\"no\"\u003eNATURAL_KEY\u003c/var\u003e\",\n \"instance\": \u003cvar translate=\"no\"\u003e\u003cspan class=\"devsite-syntax-err\"\u003eMETADATA_INSTANCE_OBJECT\u003c/span\u003e\u003c/var\u003e\n }\n\nReplace the following:\n\n- `BUCKET_NAME` with the name of the bucket in which to create a metadata instance.\n- `BUCKET_VERSION` with the version of the metadata bucket in which to create a metadata instance.\n- `NATURAL_KEY` with the natural key of the metadata instance. It must be `tagName` if `BUCKET_NAME` corresponds to a tag bucket. If `BUCKET_NAME` corresponds to a record bucket and the natural key is omitted, the natural key is automatically set to the hash of the value.\n- `METADATA_INSTANCE_OBJECT` with the metadata instance object. The metadata instance object must conform to the schema defined for the `BUCKET_NAME` and `BUCKET_VERSION`.\n\n### Console\n\nOpen the **'CLOUD TAGS'** section of the top menu of the\nUI to create a **Metadata Instance** . The default\nview provides a list of the available **Tags** in the MDE\ninstance:\n\nThe UI only supports editing Tag Metadata Buckets. Other Bucket types\ninstances can only be created using the API. To create a\n**Tag Metadata Instance**:\n\n1. Click the **'ACTIONS'** icon in the selected **Tag** from the list.\n2. Select **'View / Edit'**.\n\n3. In the **'Edit Tag'** side menu, locate the **'Tag Metadata'** section to\n edit or add a new **Metadata Instance**.\n\n4. Click the **Badge** of the Bucket you want to implement. The attributes of the bucket\n appear underneath.\n\n5. Modify the existing attributes or add new ones as needed.\n Those attributes are editable and can be modified.\n\n6. Add the selected values in each box of the form.\n\n7. After the instance is complete click the **'SAVE'**.\n\n8. The instance is then validated against the Bucket\n schema(s). If the validation is successful, the instance is stored and a\n success message is displayed. This instance becomes the current valid\n instance qualifying the new **Records** received for this Tag.\n\nMetadata instances creation dynamically from parsers\n----------------------------------------------------\n\nMetadata instances can be created dynamically from parsers when you use the\n`lookup by value` method of resolving metadata instance references. When you use\nthe `lookup by value` method, and the latest metadata instance value for the\nprovided natural key does not exist, MDE automatically creates\na new metadata instance for the natural key from the instance object defined\nthe in the proto record. See the documentation on\n[how to resolve metadata instance_id by instance value](/manufacturing-data-engine/docs/guides/parse/how-to-link-records-to-metadata-instances#resolving_a_metadata_instance_id_by_instance_value)\nfor more details."]]