Transfer connection ownership
Changes owner_user_id and nothing else. The new owner gets implicit edit, plus delete and transfer, which no grant confers; every existing grant on the connection stays as it was, so who else could already reach it is unaffected. To change who can reach a connection, use POST /connection/{id}/share and DELETE /connection/{id}/share/{aclId}. Only the Elaichi record changes: the stored credential is untouched, so toolbox entries pinned to this connection keep resolving and executing across the transfer. This is the non-destructive alternative to delete when a member leaves. Allowed for the current owner only. It costs the outgoing owner their access: their reach came from ownership, not a grant, so unless a grant of their own already covered them they hold nothing afterwards (access: null), and because a toolbox entry runs on its delegator's access to the pinned connection, every entry they pinned stops resolving, for everyone including the new owner. retain_access: true prevents that by granting them use as an ordinary, listed, revocable share in the same operation; only the connection's owner may use it. Call GET /connection/{id}/transfer-preview first to see the same numbers. connected_by_user_id is not rewritten, deliberately: the stored credential still belongs to whoever authorized it, so the response carries the new owner_user_id beside the unchanged connected_by_user_id and connected_by_label. A client that shows "Connected by" from owner_user_id would claim the new owner authenticated an account they never touched. The new owner must be an active member: a suspended one is refused with 400 member_not_active.
Request
- Base URL: https://api.elaichi.ai
- URL: https://api.elaichi.ai/connection/{id}/transfer
- Auth: HTTP bearer
Path parameters
Connection id (conn_…).
Headers
Target organization (org_…). Required for cookie/session auth on org-scoped routes; optional for API tokens, which carry their organization, and rejected when it names a different one.
Request body
Response
OK
Changes
No recorded changes to this operation across all 1 revision of this API.