API Reference
Delete by Intent
API reference for the delete by intent endpoint
POST
The /delete_by_intent
endpoint allows you to remove knowledge entries that match a specific intent.
Base URL
Authentication
Query Parameters
The tenant identifier
The intent to match against
Optional similarity threshold for matching documents
Example Requests
Response
Success Response
Number of documents deleted
Operation status message
Example success response:
Error Response
Array of validation errors
Example error response:
Status Codes
Best Practices
-
Similarity Threshold
- Start with the default threshold of 0.5
- Increase for more precise matching
- Decrease for broader matching
- Test with small deletions first
-
Intent Formatting
- Use clear, specific intents
- Keep intents concise
Authorizations
Query Parameters
Optional similarity threshold for matching documents
Response
200
application/json
Successful Response
The response is of type object
.