[ https://issues.apache.org/jira/browse/ATLAS-4239?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17317677#comment-17317677 ]
Nikhil P Bonte commented on ATLAS-4239: --------------------------------------- [~kirill] You are using wrong API. To create new classification into Atlas use following API {code:java} POST /api/atlas/v2/types/typedefs {code} Sample payload {code:java} { "enumDefs": [], "structDefs": [], "classificationDefs": [ { <classDef_1> } ], "entityDefs": [], "relationshipDefs": [], "businessMetadataDefs": [] } {code} > create classification from api > ------------------------------ > > Key: ATLAS-4239 > URL: https://issues.apache.org/jira/browse/ATLAS-4239 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Reporter: kirill > Assignee: Nikhil P Bonte > Priority: Major > > Hello! > I dug all documentations and unfortunately i coudn't create classification > from api > I tried : > curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: > application/json' -u admin:admin '/api/atlas/v2/entity/bulk/classification' > -d ' > { "classification":{ "typeName":"????", > "attributes":{ > } > }, > "entityGuids":[ ""] > } > ' > I had the error "Given classification x was invalid" > I know, i want to create classification x > Please help ! > > -- This message was sent by Atlassian Jira (v8.3.4#803005)