Survivorship
Field-level survivorship rule endpoints.
Survivorship
Survivorship rules determine which source value wins for each field when building a golden record. These endpoints manage the rule configuration.
GET/api/survivorship/rulesAUTH
Retrieve the current survivorship rules.
Response
[
{ "field": "name", "strategy": "most_recent", "priority": 1 },
{ "field": "email", "strategy": "most_complete", "priority": 2 },
{ "field": "phone", "strategy": "source_priority", "priority": 3 }
]
| Field | Type | Description |
|---|---|---|
field | string | Column or attribute name |
strategy | string | Survivorship strategy applied to this field |
priority | integer | Evaluation order (lower = higher priority) |
PUT/api/survivorship/rulesAUTH
Replace the entire survivorship rule set.
Request
[
{ "field": "name", "strategy": "most_recent", "priority": 1 },
{ "field": "email", "strategy": "most_complete", "priority": 2 },
{ "field": "phone", "strategy": "manual", "priority": 3 }
]
Response
Returns the updated rules array.
Errors
| Status | Meaning |
|---|---|
401 Unauthorized | Missing or invalid token |
422 Unprocessable Entity | Invalid strategy name or duplicate fields |
Strategies
| Strategy | Description |
|---|---|
most_recent | Use the value from the most recently updated source record |
most_complete | Use the longest non-null value across all sources |
source_priority | Use the value from the highest-priority source (configured per source) |
manual | Value is set manually and never overwritten by automation |