Skip to content

PatchBody

A patch-style update. Every set/unset path starts with custom.; unset applies after set. At least one of set/unset/refs must be present.

optional refs?: string[];

Activity patches only — feed(group, id).updateActivity() in this package, activities.patch() in @dropinnodex/server. Ignored by objects.patch(), since objects have no refs of their own. Replaces the activity’s refs array wholesale (not merged): each entry is type:id, max 4, no duplicates. [] clears every ref. This is how an activity posted before objects existed adopts them, without the delete-and-repost this feature exists to avoid.


optional set?: Record<string, unknown>;

optional unset?: string[];