POST
/
api
/
r2r
/
v3
/
graphs
/
{collection_id}
/
entities
Create Entity
curl --request POST \
  --url https://api.intelligence.io.solutions/api/r2r/v3/graphs/{collection_id}/entities \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "description": "<string>",
  "category": "<string>",
  "metadata": [
    "<any>"
  ]
}'
{
  "results": {
    "name": "name",
    "description": "description",
    "category": "category",
    "metadata": {
      "key": "value"
    },
    "id": "id",
    "parent_id": "parent_id",
    "description_embedding": [
      1.1
    ],
    "chunk_ids": [
      "chunk_ids"
    ]
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

collection_id
string
required

Collection ID

Body

application/json
name
string
required

The name of the entity to create.

description
string
required

The description of the entity to create.

category
string

The category of the entity to create.

metadata
any[]

The metadata of the entity to create.

Response

200

results
object