Restore glossaries
POST
/api/meta/entity/bulk#restoreGlossaries
Restore one or more soft-deleted (archived) glossaries.
The restoration relies on matches being found for the provided qualifiedName
s. If the this does not exactly match (case-sensitive) a soft-deleted glossary's qualifiedName
, the request will fail.
Note that the guid
is also required to avoid accidentally creating a new glossary. If the qualifiedName
does not match an existing glossary, and no guid
is supplied in the request, then this endpoint will create a new glossary with the provided details.
POST /api/meta/entity/bulk#restoreGlossaries
curl \
-X POST https://tenant.atlan.com/api/meta/entity/bulk#restoreGlossaries \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entities":[{"typeName":"AtlasGlossary","attributes":{"name":"Metrics","qualifiedName":"Metrics"},"guid":"eb81a273-65d0-4f3f-8da4-59d2eaa597dc","status":"ACTIVE"}]}'
Request example
{
"entities": [
{
"typeName": "AtlasGlossary",
"attributes": {
"name": "Metrics",
"qualifiedName": "Metrics"
},
"guid": "eb81a273-65d0-4f3f-8da4-59d2eaa597dc",
"status": "ACTIVE"
}
]
}
Response example (200)
{
"mutatedEntities": {
"UPDATE": [
{
"typeName": "AtlasGlossary",
"attributes": {
"popularityScore": 1.17549435e-38,
"viewerUsers": [],
"sourceCreatedAt": 0,
"viewScore": 1.17549435e-38,
"lastSyncRunAt": 0,
"adminRoles": [],
"adminGroups": [],
"qualifiedName": "kRCbrmy1phqOyEQBade9H",
"__hasLineage": false,
"adminUsers": [],
"ownerGroups": [],
"isEditable": true,
"sourceUpdatedAt": 0,
"announcementUpdatedAt": 0,
"name": "Metrics",
"certificateUpdatedAt": 0,
"isDiscoverable": true,
"viewerGroups": [],
"ownerUsers": []
},
"guid": "eb81a273-65d0-4f3f-8da4-59d2eaa597dc",
"status": "ACTIVE",
"displayText": "Metrics",
"classificationNames": [],
"classifications": [],
"meaningNames": [],
"meanings": [],
"isIncomplete": false,
"labels": [],
"createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"updatedBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
"createTime": 1655139776124,
"updateTime": 1655139776124
}
]
},
"guidAssignments": {}
}
Response example (404)
{
"errorCode": "ATLAS-404-00-00A",
"errorMessage": "Referenced entity eb81a273-65d0-4f3f-8da4-59d2eaa597dc is not found",
"entityGuid": "eb81a273-65d0-4f3f-8da4-59d2eaa597dc"
}