Support Questions
Find answers, ask questions, and share your expertise

Apache Atlas REST API call to create entity

Apache Atlas REST API call to create entity

New Contributor

Looking for help with the following issue. I am looking to create a Kafka topic in Apache Atlas using Rest API and add AVRO schema into the topic. As a test start trying to create a type using REST API. The syntax I am using is as follows. But I am getting an internal server error. Any suggestion is highly appreciable. 

 

 

curl --negotiate -u <user>:<password> -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' "$ATLAS-SERVER/api/atlas/types/typedefs" -d '
{
"entityDefs": [
{
"name": "test",
"description": "test type",
"superTypes": [
"DataSet"
],
"typeVersion": "1.0",
"attributeDefs": [
{
"name": "subject_area_name",
"typeName": "string",
"isOptional": true,
"cardinality": "SINGLE",
"isUnique": false,
"isIndexable": true
}
]
}
]
}