curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/graph/nodes \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"node_type": "<string>",
"properties": {},
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
node_type: '<string>',
properties: {},
mutation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
node_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/graph/nodes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/brain/graph/nodes"
payload = {
"display_name": "<string>",
"node_type": "<string>",
"properties": {},
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Create a knowledge node immediately
A project’s knowledge graph (#663), in the workspace database (Pro and above); a project hidden from the caller answers 404. It holds the nodes made through it (each carries project_id), and its reads add the workspace graph (nodes with no project) unless shared=0 or the caller has projects hidden from them. Writes touch only this project’s own nodes; an edge may point at any node the project can read. Never another project’s nodes. Pro or Team. Workspace-scoped credentials only. Reads require read access; mutations require write access and X-Requested-With for cookie sessions. The authenticated workspace registry selects the database. Stable mutation_id and node_id UUIDs are recommended for safe retries. Creates standalone knowledge; table records are projected automatically.
curl --request POST \
--url https://app.hookie.ai/admin/api/projects/{project_id}/brain/graph/nodes \
--header 'Content-Type: application/json' \
--data '
{
"display_name": "<string>",
"node_type": "<string>",
"properties": {},
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
display_name: '<string>',
node_type: '<string>',
properties: {},
mutation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
node_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.hookie.ai/admin/api/projects/{project_id}/brain/graph/nodes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/projects/{project_id}/brain/graph/nodes"
payload = {
"display_name": "<string>",
"node_type": "<string>",
"properties": {},
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"node_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}Path Parameters
Body
Response
Successful operation
The response is of type object.