Disconnect an agent from its knowledge base
Drops an agent’s connection. Takes an AGENT, not a knowledge base: a brain-scoped spelling would look as though it only dropped connections to that brain, and it would not. Disconnecting an agent that has no connection answers 404: 204 means a connection was dropped. The AGENT is scoped to the calling tenant_user, not to the company: a brain is shared by the company (brain_knowledge_bases has no tenant column) but an agents row is not, so an agent belonging to another tenant_user answers 404 resource_not_found — the same answer /v1/employees gives for it. Tenant-scoped mount of the identical company route.
Authorizations
Workspace API key. Create one via the dashboard or POST /v1/auth/keys.
Headers
Act inside this project. The header form of the /v1/projects/{project_id}/... prefix, for clients that cannot rewrite their base path. Lower precedence than the path, higher than the key's pinned project; omitted resolves to the organization's default project.
Path Parameters
Tenant user id, or default for the caller`s own.
An agents.id UUID.
Response
Disconnected