upsert_entity
Create or merge a knowledge-graph entity using a stable canonical key to deduplicate company, security, or person records and preserve linked research.
Instructions
Create an entity (or merge into the one with the same canonical_key).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | company | |
| name | Yes | ||
| aliases | No | Other names, abbreviations | |
| tickers | No | ||
| canonical_key | No | Stable id such as cik:0001045810; merges on match |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| name | Yes | ||
| attrs | Yes | ||
| aliases | Yes | ||
| created_at | Yes | ||
| updated_at | Yes | ||
| canonical_key | Yes |