Detach agent from document
DELETE/knowledge-base/{id}/agents/{agent_id}
Remove the link between this knowledge document and the specified agent. The document's content will be removed from the agent's provider-side knowledge base. Not paywalled — removing knowledge must always be possible.
Requires
Authorization: Bearer <api_key>. Create a key in the Inspra dashboard under Workspace Settings → API Keys.Path parameters
- idstringrequiredUUID of the resource.
- agent_idstringuuidrequiredUUID of the agent.
Response 200 OK
Detach result.
- document_idstringuuidrequired
- agent_idstringuuidrequired
- detachedbooleanrequired
- sync_errorstringnullableoptional
Errors
- 401UnauthorizedMissing, malformed, or invalid API key.
- 403ForbiddenWorkspace unavailable, suspended, or paywalled.
- 404Not FoundResource not found in this workspace.
- 429Too Many RequestsWorkspace request limit exceeded; shared across all its API keys.