Edit a federation peer (tier / encryption_policy / enabled / notes / display_name)
PATCH /admin/federation/peers/{id}
Cannot change instance_url or instance_public_key — those require defederate + re-pair (the public_key change in particular signals re-handshake).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body required
Section titled “Request Body required ”PATCH shape — every field optional. Omitting a field leaves it unchanged. instance_url and instance_public_key are NOT editable; defederate + re-pair to change them.
object
Per-peer opt-in for peer-of-peer discovery (Phase 1.22.B-d). Toggle this to expose the peer in our /federation/peers/visible response so other peers can surface it as a suggestion.
Responses
Section titled “ Responses ”Updated peer.
One row from the federation_peers registry (Phase 1.22.B-a + ADR 0043 §“Trust model”). Pairing alone shares no content — see federation_shares (1.22.C) for the access-control layer.
object
Https://peer.example (no trailing slash, no path)
PEM-wrapped Ed25519 public key (RFC 8410). May be the
placeholder string PENDING-HANDSHAKE-RESPONSE while
status is pending_outbound — the peer’s real key
replaces it when the confirm envelope arrives.
Handshake state machine (migration 00052 + v1.md §11). Outbound delivery (1.22.D) gates on connected only.
Per-peer opt-in for peer-of-peer discovery (Phase 1.22.B-d). When true, this peer appears in GET /federation/peers/visible — other peers can then surface it as a discovery suggestion. Default false; explicit opt-in.
Malformed request
object
Human-readable error summary
Example
the request could not be completedAuthentication 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