Subjects

Merge an anonymous subjectId into a real one (T414, widget-kit login-merge)

Atomically re-keys every row tagged fromSubjectId onto toSubjectId — contexts, stored conversations, group memberships (deduped on collision), and the subjects registry row itself.

post/api/subjects/merge

Request

  • Base URL: http://localhost:38200
  • URL: http://localhost:38200/api/subjects/merge
  • Auth: one of:
    • HTTP bearer
    • API key in cookie token

Request body

fromSubjectIdstring required
toSubjectIdstring required

Response

Merge complete.

messagestring
from_subject_idstring
to_subject_idstring
contexts_movedinteger
conversations_movedinteger
group_memberships_movedinteger
group_memberships_dedupedinteger
subject_registry_mergedboolean

Changes

No recorded changes to this operation across all 1 revision of this API.