Delete corrections
Deletes one correction of one of the org's decisions.
DELETE /v1/decisions/{decision}/corrections/{id}
| Address | https://api.hanzo.ai/v1/decisions/{decision}/corrections/{id} |
| Method | DELETE |
| Operation | decisionsUncorrect |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Deletes one correction of one of the org's decisions. A capability already taught from it keeps its versions.
Request
2 fields.
| Field | In | Type | Required | Description |
|---|---|---|---|---|
decision | path | string | yes | |
id | path | string | yes |
Response
| Status | Body | Meaning |
|---|---|---|
204 | — | no content |
default | problem-details | refused |
Failure carries the platform error shape — see Errors.
Examples
CLI
SDK
HTTP
MCP
hanzo decisions corrections rm <decision> <id>.ts
.py
.go
.rs
.java
import { Configuration, AiApi } from 'hanzoai';
const api = new AiApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.decisionsUncorrect({ decision: 'decision', id: 'id' });from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import AiApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = AiApi(client).decisions_uncorrect(decision='decision', id='id')cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.AiAPI.DecisionsUncorrect(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, ai_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = ai_api::decisions_uncorrect(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.AiApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new AiApi(client).decisionsUncorrect();curl -X DELETE https://api.hanzo.ai/v1/decisions/<decision>/corrections/<id> \
-H "Authorization: Bearer $HANZO_API_KEY"Tool ai, op decisionsUncorrect — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "ai",
"arguments": {
"op": "decisionsUncorrect",
"input": {
"decision": "<decision>",
"id": "<id>"
}
}
}
}'Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.