Esta página está em inglês.
DELETE/v1/retention/{request_id}
Delete a retained decision
Delete one retained decision by request id. Requires a Bearer API key.
Parâmetros
| Nome | Em | Obrigatório |
|---|---|---|
| request_id | path | Sim |
Respostas
200
Successful Response
422
HTTPValidationError
| Campo | Tipo | Obrigatório |
|---|---|---|
| detail | array of ValidationError | Não |
curl -s -X DELETE "https://strike-ai.eu/v1/retention/req_retained_abc" \
-H "Authorization: Bearer $STRIKE_API_KEY"Resposta de exemplo
{
"deleted": true,
"request_id": "req_retained_abc"
}Testar
Chama o nosso proxy no servidor. Cole a sua chave de API só aqui: ela fica nesta aba e não é guardada nem enviada para analytics. Deixe vazio para usar a chave do proxy do playground.
Erros
| Estado | Código | Significado |
|---|---|---|
| 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). |