Skip to content

Remove a learned case

DELETE/api/public/v1/policies/{public_id}/intent-policies/{intent_policy_id}/cases/{case_id} beta

Deletes one learned case of the intent policy: a regression case an editor accepted from a learning proposal. 409 CASE_NOT_LEARNED for a generated case.

Terminal window
curl --fail-with-body -X DELETE 'https://app.openlatch.ai/api/public/v1/policies/<policy_public_id>/intent-policies/<intent_policy_id>/cases/<case_id>' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorAllowed
viewerNot allowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: policies:write

ParameterTypeDescription
public_idstringRequired.
intent_policy_idstring (uuid)Required.
case_idstring (uuid)Required.
ParameterTypeDescription
Idempotency-Keystring or nullOptional. Makes the request safe to retry: the same key and the same request, within 24 hours, returns the stored response with Idempotent-Replayed: true and runs once.