Preview what defederation will cascade
GET /admin/federation/peers/{id}/defederation-preview
Backs the cascade-preview modal per the 1.22.C design proposal §8.5. Returns:
- total_active_shares + per-object-kind breakdown
- pending_handshakes (handshakes in flight that would be cancelled)
- cached_suggestions (peer-of-peer suggestions contributed by this peer that would be dropped)
- peer summary (display_name + URL for the modal
header)
Gated on
system.admin.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”Cascade impact summary.
Cascade-preview summary returned by GET /admin/federation/peers/{id}/defederation-preview per the 1.22.C design proposal §8.5. The admin UI renders this in the confirm-defederation modal so the operator sees exact impact before clicking through.
object
Sum across all object kinds. The cascade emits one aa:Unshare per row (best-effort delivery via the outbox) before deleting the peer.
Per-object-kind breakdown so the modal renders “12 posts, 23 collections, 8 assets, …”. Keys are from the federation.ShareObjectKind closed catalogue; kinds with zero active shares may be omitted.
object
Number of pending_outbound + pending_inbound rows for this peer.
Federation_peer_suggestions rows sourced from this peer that would be dropped.
Authentication required, missing, or invalid
object
Human-readable error summary
Example
the request could not be completedExample
{ "error": "authentication required: sign in and retry with a valid session or API token"}Authenticated but missing required capabilities
object
Human-readable error summary
Example
the request could not be completedResource not found
object
Human-readable error summary
Example
the request could not be completed