curl -X POST https://api.intellibase.dev/api/v1/ontologies \
-H "Authorization: Bearer ib-your-api-key" \
-H "Content-Type: application/json" \
-d '{
"name": "Software Engineering",
"schema": {
"ontology": {
"hierarchy": [
{
"level": 0,
"node_types": {
"Developer": {
"properties": ["name", "role", "team"],
"description": "Software developer"
},
"Feature": {
"properties": ["name", "status", "deadline"],
"description": "Software feature"
}
}
}
],
"edge_types": [
{
"name": "WORKS_ON",
"source_types": ["Developer"],
"target_types": ["Feature"],
"properties": ["role"],
"temporal": true,
"description": "Developer works on feature"
}
]
}
}
}'