POST
/api/im/memory/team/sync
Bulk team memory sync (delta push + pull)
Bidirectional team memory sync (Design 14e §8.5). Caller pushes a delta
batch and/or pulls remote updates since an ISO timestamp for a
team scope. Membership is enforced:
Allowlist (MEMORY_TEAM_ALLOWLIST) blocks non-whitelisted teams.
First pusher auto-enrolls as owner (TOFU).
Existing members must belong to the team.
Writes synthetic team: ownerId; scope is
shared:team:. Server runs secret scanning + hash/size
validation per entry; rejections appear in pushed.rejected[].
No code sample available for this language
Request Body
| Field | Type | Req | Default | Description |
|---|---|---|---|---|
| team | string | Y | — | <owner>/<repo> (e.g. acme/widgets) |
| since | string | N | — | Pull updates after this timestamp |
| push | object[] | N | — |