Command Reference > glossary > createTerms
Create glossary terms in bulk.
pv glossary createTerms --payloadFile=<val> [--includeTermHierarchy]
--payloadFile
(string)
File path to a valid JSON document.
--includeTermHierarchy
(boolean)
Whether to include the term hierarchy [default: false].
Catalog Data Plane > Glossary > Create Glossary Terms
POST https://{accountName}.purview.azure.com/catalog/api/atlas/v2/glossary/terms
Create terms in bulk.
pv glossary createTerms --payloadFile "/path/to/file.json"
Example payload.
[
{
"anchor": {
"glossaryGuid": "125e2575-5823-4887-89f0-ff03a70f7c3a"
},
"longDescription": "This is a definition for Term1.",
"name": "Term1"
},
{
"anchor": {
"glossaryGuid": "125e2575-5823-4887-89f0-ff03a70f7c3a"
},
"longDescription": "This is a definition for Term2.",
"name": "Term2"
},
{
"anchor": {
"glossaryGuid": "125e2575-5823-4887-89f0-ff03a70f7c3a"
},
"longDescription": "This is a definition for Term3.",
"name": "Term3"
}
]
Create terms in bulk with a custom term template. Note: The payload has the additional "attributes" property.
pv glossary createTerms --payloadFile "/path/to/file.json"
Example payload.
[
{
"anchor": {
"glossaryGuid": "9a799256-4992-4571-9c39-1d7e3ff61470"
},
"attributes": {
"My Custom Term Template": {
"Custom Attribute 01": "Hello World",
"Custom Attribute 02": "Hello World"
}
},
"longDescription": "This is a definition for Term1.",
"name": "Term1"
},
{
"anchor": {
"glossaryGuid": "9a799256-4992-4571-9c39-1d7e3ff61470"
},
"attributes": {
"My Custom Term Template": {
"Custom Attribute 01": "Hello World",
"Custom Attribute 02": "Hello World"
}
},
"longDescription": "This is a definition for Term2.",
"name": "Term2"
},
{
"anchor": {
"glossaryGuid": "9a799256-4992-4571-9c39-1d7e3ff61470"
},
"attributes": {
"My Custom Term Template": {
"Custom Attribute 01": "Hello World",
"Custom Attribute 02": "Hello World"
}
},
"longDescription": "This is a definition for Term3.",
"name": "Term3"
}
]