Create classifications
POST
/api/meta/types/typedefs#classifications
Create one or many new classifications.
Body Required
List of classifications to create. The classifications should be within the classificationDefs
array.
-
classificationDefs array[object] | null Required
Definition of a classification type in Atlan.
POST /api/meta/types/typedefs#classifications
curl \
-X POST https://tenant.atlan.com/api/meta/types/typedefs#classifications \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"classificationDefs":[{"category":"CLASSIFICATION","guid":"917ffec9-fa84-4c59-8e6c-c7b114d04be3","name":"jiCHJUpgaGSNPVlb6qFKem","description":"Information that can be used to identify a natural person, directly or indirectly.","typeVersion":"1.0","options":{"color":"Yellow"},"serviceType":"atlan","displayName":"PII","attributeDefs":[],"entityTypes":["Asset"],"superTypes":[],"subTypes":[]}]}'
Request example
{
"classificationDefs": [
{
"category": "CLASSIFICATION",
"guid": "917ffec9-fa84-4c59-8e6c-c7b114d04be3",
"name": "jiCHJUpgaGSNPVlb6qFKem",
"description": "Information that can be used to identify a natural person, directly or indirectly.",
"typeVersion": "1.0",
"options": {
"color": "Yellow"
},
"serviceType": "atlan",
"displayName": "PII",
"attributeDefs": [],
"entityTypes": [
"Asset"
],
"superTypes": [],
"subTypes": []
}
]
}
Response example (200)
{
"classificationDefs": [
{
"category": "CLASSIFICATION",
"guid": "917ffec9-fa84-4c59-8e6c-c7b114d04be3",
"name": "jiCHJUpgaGSNPVlb6qFKem",
"description": "Information that can be used to identify a natural person, directly or indirectly.",
"typeVersion": "1.0",
"options": {
"color": "Yellow"
},
"serviceType": "atlan",
"displayName": "PII",
"attributeDefs": [],
"entityTypes": [
"Asset"
],
"superTypes": [],
"subTypes": [],
"createdBy": "jsmith",
"updatedBy": "jsmith",
"createTime": 1648852296555,
"updateTime": 1649172284333,
"version": 2
}
],
"enumDefs": [
{}
],
"structDefs": [
{}
],
"entityDefs": [
{}
],
"relationshipDefs": [
{}
],
"businessMetadataDefs": [
{}
]
}