Skip to content

API: choose which organization a move goes into, and move Bots between organizations - #2132

Merged
davidmckayv merged 1 commit into
mainfrom
api/move-into-another-organization
Nov 24, 2026
Merged

davidmckayv merged 1 commit into
mainfrom
api/move-into-another-organization

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

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.fromOrganizationId echoes it.
  • createImport answers 403 MOVE_NOT_ALLOWED where 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).

…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
davidmckayv force-pushed the api/move-into-another-organization branch from c3532d0 to 0b26c4e Compare November 24, 2026 17:54
@davidmckayv
davidmckayv merged commit f0690c4 into main Nov 24, 2026
23 checks passed
@davidmckayv
davidmckayv deleted the api/move-into-another-organization branch November 24, 2026 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant