Unlink a brokerage
unlink_brokerageDisconnect a brokerage from YOUR Gambit account (requires api:account). Call it ONLY when the user explicitly asks to unlink, and confirm which one first. connection_id (from list_brokerages) revokes that one link at SnapTrade and keeps the others. all: true removes every link and your SnapTrade registration. Either way the link cannot be restored from here — the user must log in to the broker again (start_brokerage_connect). It never sells or moves holdings. Returns the remaining connections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | unlink every brokerage instead of one | |
| connection_id | No | a connection id from list_brokerages |