Relations
Preview a relation edit
POST/relations/preview
Scopegraph:readRoleCurrent memberBilling1 credit per call
Takes the same body as POST /relations and returns what would be retired, added, revived or confirmed, the current edges with their sourceClass, and the modes that make sense right now. No write.
Body
fromKindenumrequired
customer · account_person
fromIduuidrequired
relationTypeenumrequired
toKindenumrequired
icp · persona · use_case · product · competitor
toIduuidoptional
Required for add and replace.
modeenumrequired
add · replace · retire
reasonstringrequired
Why this change is being made. 1–500 characters. Stored in the audit trail.
Response
current(Relation & { sourceClass })[]
wouldRetireRelation[]
wouldAdd{ toKind, toId } | null
wouldReviveRelation | null
wouldConfirmRelation | null
options{ mode, description }[]