Delete Phrases
Remove phrases from a custom model by value. Removing is idempotent: phrases that
are not present are reported as skipped.
POST https://api.reson8.dev/v1/custom-model/{id}/phrases/delete
Request
| Header |
Value |
| Authorization |
ApiKey <api_key> or Bearer <access_token> |
| Content-Type |
application/json |
Path Parameters
| Parameter |
Type |
Description |
id |
string |
ID of the custom model |
Body
| Field |
Type |
Required |
Description |
phrases |
string[] |
Yes |
Phrases to remove (must not be empty) |
Example
Response
200 OK
| Field |
Type |
Description |
deleted |
number |
Number of phrases removed |
skipped |
number |
Number of submitted phrases not removed (not present or duplicate) |
Example
In the request above tachycardia was not in the model:
{
"deleted": 1,
"skipped": 1
}
Errors
| Status |
Code |
Description |
| 400 |
INVALID_REQUEST |
Empty list or blank phrase |
| 401 |
UNAUTHORIZED |
Invalid or expired credentials |
| 404 |
NOT_FOUND |
Custom model not found |
| 500 |
INTERNAL_ERROR |
Unexpected server error |