DELETEhttps://core-api.heysadie.ai/assistants/{id}/documents/{documentId}
id documentIdDetach document
Detach a document from an assistant
Try it in the API ExplorerExample request
Terminal
curl -X DELETE "https://core-api.heysadie.ai/assistants/ASSISTANT_ID/documents/DOCUMENT_ID" \
-H "Authorization: ApiKey YOUR_API_KEY"Authentication
Authenticate with an API key in the Authorization header using the ApiKey scheme — see Authentication for how keys work and where to get them.
AuthorizationstringrequiredAPI key in the ApiKey scheme: ApiKey YOUR_API_KEY. Tenant keys authorize their own tenant; organization keys can act on any tenant in the organization.
X-Tenant-Idstring (uuid)optionalRequired when authenticating with an organization key — selects the tenant the request acts on. Omit with tenant keys.
Request
Path parameters
idstringrequiredThe resource's UUID.
documentIdstringrequiredUUID of the document.
Responses
200Detaches the document from the assistant. The document itself is not deleted and stays in the tenant library. Returns an empty body on success.
No response schema documented.