Remove a relationship against its current revision
curl --request DELETE \
--url https://app.hookie.ai/admin/api/data-workspace/graph/edges \
--header 'Content-Type: application/json' \
--data '
{
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation_type": "<string>",
"expected_version": 1,
"edge_weight": 500000,
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
source_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
relation_type: '<string>',
expected_version: 1,
edge_weight: 500000,
mutation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/graph/edges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/graph/edges"
payload = {
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation_type": "<string>",
"expected_version": 1,
"edge_weight": 500000,
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){}Knowledge graph
Remove a relationship against its current revision
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. expected_version must be positive. Recreation keeps revisions increasing so a stale edit cannot match a new edge.
DELETE
/
admin
/
api
/
data-workspace
/
graph
/
edges
Remove a relationship against its current revision
curl --request DELETE \
--url https://app.hookie.ai/admin/api/data-workspace/graph/edges \
--header 'Content-Type: application/json' \
--data '
{
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation_type": "<string>",
"expected_version": 1,
"edge_weight": 500000,
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
'const options = {
method: 'DELETE',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
source_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
target_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
relation_type: '<string>',
expected_version: 1,
edge_weight: 500000,
mutation_id: '3c90c3cc-0d44-4b50-8888-8dd25736052a'
})
};
fetch('https://app.hookie.ai/admin/api/data-workspace/graph/edges', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.hookie.ai/admin/api/data-workspace/graph/edges"
payload = {
"source_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"target_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"relation_type": "<string>",
"expected_version": 1,
"edge_weight": 500000,
"mutation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
headers = {"Content-Type": "application/json"}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){}Body
application/json
Response
Successful operation
The response is of type object.