Aller au contenu

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.

Fenêtre de terminal
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"
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerNon autorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : policies:write

ParamètreTypeDescription
public_idstringObligatoire.
intent_policy_idstring (uuid)Obligatoire.
case_idstring (uuid)Obligatoire.
ParamètreTypeDescription
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.