Note Object Links
Was this helpful?
Was this helpful?
{
"data": [
{
"id": 314,
"note_uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
"object_id": "e7c40f6e-2f19-4b52-9d7a-52a5a24c3f10",
"object_type": "evidence",
"object_name": "EV-2026-0042-001",
"created_on": "2026-08-03T14:25:00Z"
}
],
"page": 1,
"next_page": null,
"page_size": 3000,
"total": 1
}response = session.get(f"{BASE_URL}/notes/object-links", params={
"note_uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
})
for link in response.json()["data"]:
print(f"[{link['id']}] {link['object_type']}: {link['object_name']}")POST /v1/notes/object-links
Content-Type: application/json{
"note_uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
"object_id": "e7c40f6e-2f19-4b52-9d7a-52a5a24c3f10",
"object_type": "evidence"
}{
"success": true,
"created": true,
"message": "Note object link created",
"data": {
"id": 314,
"note_uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
"object_id": "e7c40f6e-2f19-4b52-9d7a-52a5a24c3f10",
"object_type": "evidence",
"object_name": "EV-2026-0042-001",
"created_on": "2026-08-03T14:25:00Z"
}
}response = session.post(f"{BASE_URL}/notes/object-links", json={
"note_uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
"object_id": "e7c40f6e-2f19-4b52-9d7a-52a5a24c3f10",
"object_type": "evidence",
})
body = response.json()
if body["created"]:
print(f"Linked (link id {body['data']['id']})")
else:
print("Was already linked")DELETE /v1/notes/object-links/{id}
DELETE /v1/notes/object-links?note_uuid={note_uuid}&object_id={object_id}{
"success": true,
"message": "Note object link deleted",
"deleted_count": 1
}# By link id
session.delete(f"{BASE_URL}/notes/object-links/314").raise_for_status()
# By note + object pair
session.delete(f"{BASE_URL}/notes/object-links", params={
"note_uuid": "0f8fad5b-d9cb-469f-a165-70867728950e",
"object_id": "e7c40f6e-2f19-4b52-9d7a-52a5a24c3f10",
}).raise_for_status()