Repository navigation
API: choose which organization a move goes into, and move Bots between organizations - #2132
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 24, 2026 17:37
…n organizations A person in more than one organization on OpenBot Cloud had their Bots moved into their own organization, with no way to choose another or to move them across afterwards. Additive only: - Organization.canMoveIn: whether the caller may move their Bots into that organization, by its own "Use Bots" rule, so a client can say so before anything moves. - ImportInput.fromOrganizationId: an import that moves what the caller has in another of their organizations, packed up by the server, checked here, and only then removed from there. - Import.fromOrganizationId echoes it. - createImport answers 403 MOVE_NOT_ALLOWED where the organization doesn't let the caller use Bots.
davidmckayv
force-pushed
the
api/move-into-another-organization
branch
from
November 24, 2026 17:54
c3532d0 to
0b26c4e
Compare
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A person who belongs to more than one organization on OpenBot Cloud had everything from OpenBot (Self-Contained) moved into their own organization. Nothing asked which one, and nothing let them move it across afterwards.
This is the API half: additive only, no operation or field removed or tightened.
Organization.canMoveIn(in the caller's list of organizations): whether they may move their Bots into that organization, decided by its own "Use Bots" rule. Clients say so before anything moves, from the list they already read.ImportInput.fromOrganizationId: an import that moves what the caller has in another of their organizations into this one. The server packs it up there, imports it here by the same rules and verification as a move from a computer, and removes it from the first organization only once the check here matches. Starter Bots land on this organization's own. Apps are connected again here.Import.fromOrganizationIdechoes it.createImportanswers 403MOVE_NOT_ALLOWEDwhere the organization doesn't let the caller use Bots.The server and the screens follow in their own PRs, on the client generated here.
Checks run locally:
bun run api:generate(no drift),bun run api:lint,bun test api(117 pass).