[ https://issues.apache.org/jira/browse/ATLAS-4672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17647668#comment-17647668 ]
Abhishek Pal commented on ATLAS-4672: ------------------------------------- I am {*}not sure{*}, but I think you can create an entity with classification. Maybe if you pass it as: {code:python} test_db = AtlasEntity({ 'typeName': 'hive_db'}) test_db.attributes = { 'name': 'test_db', 'clusterName': 'prod', 'qualifiedName': 'test_db@prod' } test_db.classification = {<your_classification_info_here>} entity_info = AtlasEntityWithExtInfo() entity_info.entity = test_db resp = client.entity.create_entity(entity_info) {code} This was taken from the README.md file and modified to include classifications. Can you test this and let me know? [~Rahul_FI] > Python Client: Unable to create an entity with classification assigned to it. > ----------------------------------------------------------------------------- > > Key: ATLAS-4672 > URL: https://issues.apache.org/jira/browse/ATLAS-4672 > Project: Atlas > Issue Type: Bug > Reporter: Rahul Kurup > Priority: Major > > It is possible to create an entity using 'create_entity' method and it is > possible to assign a classification to the entity using > 'add_classifications_by_guid' in separate API calls, but it is impossible to > do both in the same API call using the method 'create_entity'. > It is possible to simultaneously create an entity and assign a classification > to it in the CURL version of the REST API call, so the same should be made > possible in the Python Client method as well. -- This message was sent by Atlassian Jira (v8.20.10#820010)