Skip to main content
POST
Move an agent to another organization (admin-in-both)

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

agent_id
string
required

Agent identifier (e.g. smolt-abc123)

Body

application/json
dest_org_id
string
required

The organization to move the agent into (e.g. org-... or pers-...). The caller must be an owner/admin of this org AND of the agent's current org.

Response

Agent moved to the destination organization (or already there — idempotent no-op with moved: false)

moved
boolean
required

true when the agent's org changed; false when it was already in the destination org (idempotent no-op).

agent_id
string
required
from_org_id
string
required
to_org_id
string
required