Skip to main content
POST
/
api
/
graphs
Create a graph
curl --request POST \
  --url https://neode.ai/api/graphs \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {}
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>",
    "description": "<string>",
    "index_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "metadata": {},
    "triple_count": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

API key for authentication

Body

application/json
name
string
required
description
string
index_id
string<uuid>
metadata
object

Response

Successfully created

success
boolean
data
object

A graph organizing related triples