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 }
]
FieldTypeDescription
fieldstringColumn or attribute name
strategystringSurvivorship strategy applied to this field
priorityintegerEvaluation 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

StatusMeaning
401 UnauthorizedMissing or invalid token
422 Unprocessable EntityInvalid strategy name or duplicate fields

Strategies

StrategyDescription
most_recentUse the value from the most recently updated source record
most_completeUse the longest non-null value across all sources
source_priorityUse the value from the highest-priority source (configured per source)
manualValue is set manually and never overwritten by automation