Questa pagina è in inglese.
DELETE/v1/retention/{request_id}
Delete a retained decision
Delete one retained decision by request id. Requires a Bearer API key.
Parametri
| Nome | In | Obbligatorio |
|---|---|---|
| request_id | path | Sì |
Risposte
200
Successful Response
422
HTTPValidationError
| Campo | Tipo | Obbligatorio |
|---|---|---|
| detail | array of ValidationError | No |
curl -s -X DELETE "https://strike-ai.eu/v1/retention/req_retained_abc" \
-H "Authorization: Bearer $STRIKE_API_KEY"Risposta di esempio
{
"deleted": true,
"request_id": "req_retained_abc"
}Provalo
Chiama il nostro proxy lato server. Incolla la tua chiave API solo qui: resta in questa scheda e non viene salvata né inviata agli analytics. Lascia vuoto per usare la chiave del proxy del playground.
Errori
| Stato | Codice | Significato |
|---|---|---|
| 401 | authentication_error | Missing or invalid Bearer API key. |
| 422 | validation_error | Request body failed schema or business validation. |
| 404 | not_found | Resource not found (e.g. retention id). |