Create categories
POST
/api/meta/entity/bulk#createCategories
Create one or more categories.
Note that the creation relies on no matches being found for the provided qualifiedName
s. If any of the qualifiedName
s match any existing category, those categories will be updated rather than created. Also be aware that the qualifiedName
is case-sensitive.
For more details on the semantics and other attributes available through this interface, see the Upsert entities operation.
POST /api/meta/entity/bulk#createCategories
curl \
-X POST https://tenant.atlan.com/api/meta/entity/bulk#createCategories \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"entities":[{"typeName":"AtlasGlossaryCategory","attributes":{"qualifiedName":"Monthly@kRCbrmy1phqOyEQBade9H","name":"Monthly"},"relationshipAttributes":{"anchor":{"typeName":"AtlasGlossary","guid":"b1e07ba1-33b3-4e2c-aa50-80c19846b5fe"}}}]}'
Request example
{
"entities": [
{
"typeName": "AtlasGlossaryCategory",
"attributes": {
"qualifiedName": "Monthly@kRCbrmy1phqOyEQBade9H",
"name": "Monthly"
},
"relationshipAttributes": {
"anchor": {
"typeName": "AtlasGlossary",
"guid": "b1e07ba1-33b3-4e2c-aa50-80c19846b5fe"
}
}
}
]
}
Response example (200)
{
"mutatedEntities": {
"CREATE": [
{
"typeName": "AtlasGlossaryCategory",
"attributes": {
"popularityScore": 1.17549435e-38,
"viewerUsers": [],
"sourceCreatedAt": 0,
"viewScore": 1.17549435e-38,
"lastSyncRunAt": 0,
"adminRoles": [],
"adminGroups": [],
"qualifiedName": "dA710FXqkSs5a0LPHnxn1@kRCbrmy1phqOyEQBade9H",
"__hasLineage": false,
"adminUsers": [],
"ownerGroups": [],
"isEditable": true,
"sourceUpdatedAt": 0,
"announcementUpdatedAt": 0,
"name": "Monthly",
"certificateUpdatedAt": 0,
"isDiscoverable": true,
"viewerGroups": [],
"ownerUsers": []
},
"guid": "6c7986ef-b1cf-46b9-a9bb-4e6bf5464780",
"status": "ACTIVE",
"displayText": "Monthly",
"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": 1655140843145,
"updateTime": 1655140843145
}
],
"UPDATE": [
{
"typeName": "AtlasGlossary",
"attributes": {
"qualifiedName": "kRCbrmy1phqOyEQBade9H",
"name": "Metrics"
},
"guid": "eb81a273-65d0-4f3f-8da4-59d2eaa597dc",
"status": "ACTIVE",
"displayText": "Metrics",
"classificationNames": [],
"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": 1655140843145
}
]
},
"guidAssignments": {
"-494990470246417": "6c7986ef-b1cf-46b9-a9bb-4e6bf5464780"
}
}