Attach glossary terms
Attach one or more glossary terms.
Note that the update relies on a match being found for the provided qualifiedName
s. If the qualifiedName
s do not match any existing asset, those assets will instead be created and terms attached, rather than updating an existing asset by attaching a term. Also be aware that the qualifiedName
is case-sensitive.
Terms can be attached either based on their qualifiedName
(in the example here against the ID
column) or by using their GUID (in the example here against the NAME
column). Note that when using the qualifiedName
that terms in Atlan have a unique hashed name, which is different than the name you see in the UI.
For more details on the semantics and other attributes available through this interface, see the Upsert entities operation.
Body Required
List of assets (entities) and the term(s) to attach to them.
-
entities array[object] Required
Minimal set of fields required in order to update an asset.
curl \
-X POST https://tenant.atlan.com/api/meta/entity/bulk#attachGlossaryTerm \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entities":[{"typeName":"Column","attributes":{"name":"ID","qualifiedName":"default/snowflake/123456789/TEST_DB/TEST_SCHEMA/CUSTOMER/ID"},"relationshipAttributes":{"meanings":[{"typeName":"AtlasGlossaryTerm","uniqueAttributes":{"qualifiedName":"T20JsKts9CMpznRcpGJJd@vdLN8ETB3KiDLTzoDcT6j"}}]}},{"typeName":"Column","attributes":{"name":"NAME","qualifiedName":"default/snowflake/123456789/TEST_DB/TEST_SCHEMA/CUSTOMER/NAME"},"relationshipAttributes":{"meanings":[{"typeName":"AtlasGlossaryTerm","guid":"ce55c5e1-c93e-45d9-a915-4526d9c6bf96"}]}}]}'
{
"entities": [
{
"typeName": "Column",
"attributes": {
"name": "ID",
"qualifiedName": "default/snowflake/123456789/TEST_DB/TEST_SCHEMA/CUSTOMER/ID"
},
"relationshipAttributes": {
"meanings": [
{
"typeName": "AtlasGlossaryTerm",
"uniqueAttributes": {
"qualifiedName": "T20JsKts9CMpznRcpGJJd@vdLN8ETB3KiDLTzoDcT6j"
}
}
]
}
},
{
"typeName": "Column",
"attributes": {
"name": "NAME",
"qualifiedName": "default/snowflake/123456789/TEST_DB/TEST_SCHEMA/CUSTOMER/NAME"
},
"relationshipAttributes": {
"meanings": [
{
"typeName": "AtlasGlossaryTerm",
"guid": "ce55c5e1-c93e-45d9-a915-4526d9c6bf96"
}
]
}
}
]
}
{
"mutatedEntities": {
"UPDATE": [
{
"typeName": "Column",
"attributes": {
"name": "ID",
"qualifiedName": "default/snowflake/123456789/TEST_DB/TEST_SCHEMA/CUSTOMER/ID"
},
"guid": "f5740924-fe74-4462-96ff-5da0bc970cec",
"relationshipAttributes": {
"meanings": [
{
"typeName": "AtlasGlossaryTerm",
"guid": "91aaf8a0-be52-4a65-a21f-e6a6bfd4c00f",
"uniqueAttributes": {
"qualifiedName": "T20JsKts9CMpznRcpGJJd@vdLN8ETB3KiDLTzoDcT6j"
}
}
]
}
},
{
"typeName": "Column",
"attributes": {
"name": "NAME",
"qualifiedName": "default/snowflake/123456789/TEST_DB/TEST_SCHEMA/CUSTOMER/NAME"
},
"guid": "23d6ec91-9399-41bf-8427-5cc91caaa42d",
"relationshipAttributes": {
"meanings": [
{
"typeName": "AtlasGlossaryTerm",
"guid": "ce55c5e1-c93e-45d9-a915-4526d9c6bf96",
"uniqueAttributes": {
"qualifiedName": "U19IqLst8DZqrtKopMXP9@vdLN8ETB3KiDLTzoDcT6j"
}
}
]
}
}
],
"guidAssignments": {
"-10887525374267651": "f5740924-fe74-4462-96ff-5da0bc970cec",
"-10887525374267652": "23d6ec91-9399-41bf-8427-5cc91caaa42d"
}
}
}
{
"errorCode": "ATLAS-404-00-005",
"errorMessage": "Given instance guid abc123 is invalid/not found\n"
}