Metadata templates
Find metadata template by instance ID
Finds a metadata template by searching for the ID of an instance of the template.
get/metadata_templates
Query parameters
metadata_instance_idstring uuid required
The ID of an instance of the metadata template to find.
markerstring
Defines the position marker at which to begin returning results. This is used when paginating using marker-based pagination.
This requires usemarker to be set to true.
limitinteger
The maximum number of items to return per page.
Response
Returns a list containing the 1 metadata template that matches the instance ID.
Example response
{
"limit": 1000,
"next_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVii",
"prev_marker": "JV9IRGZmieiBasejOG9yDCRNgd2ymoZIbjsxbJMjIs3kioVih",
"entries": [
{
"id": "58063d82-4128-7b43-bba9-92f706befcdf",
"type": "metadata_template",
"scope": "enterprise_123456",
"templateKey": "productInfo",
"displayName": "Product Info",
"hidden": true,
"fields": [
{
"type": "string",
"key": "category",
"displayName": "Category",
"description": "The category",
"hidden": true,
"options": [
{
"key": "Category 1",
"id": "45dc2849-a4a7-40a9-a751-4a699a589190"
}
],
"taxonomyKey": "locationTaxonomy",
"taxonomyId": "05ece6d7-fec4-4d3f-bfd2-36fd4dddea97",
"namespace": "enterprise_123456",
"optionsRules": {
"multiSelect": true,
"selectableLevels": [
1,
2
]
},
"id": "822227e0-47a5-921b-88a8-494760b2e6d2"
}
],
"copyInstanceOnItemCopy": true
}
]
}