Ir al contenido

Dismiss a learning proposal

POST/api/public/v1/learning-proposals/{public_id}/dismiss beta

Closes the proposal for good: its subject is never proposed again. 409 PROPOSAL_CLOSED when it is not open.

Ventana de terminal
curl --fail-with-body -X POST 'https://app.openlatch.ai/api/public/v1/learning-proposals/<proposal_public_id>/dismiss' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rol en la organizaciónEste punto de conexión
ownerPermitido
adminPermitido
editorPermitido
viewerNo permitido

Una clave tiene el rol que su propietario ocupa en la organización. Consulte Autenticación.

Ámbito de la clave de API: proposals:write

ParámetroTipoDescripción
public_idstringObligatorio.
ParámetroTipoDescripción
zone_idstring (uuid) or nullThe deciding zone: a proposal above it answers 404.
ParámetroTipoDescripción
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.
CampoTipoDescripción
dataobjectObligatorio. One proposal: what would change, why, in which direction, and what was decided.
data.caseobject or null
data.case.action_lineobject or null
data.case.kindstringObligatorio.
data.case.outcome_todayobject or null
data.changedobject or null
data.changed.samplearray of object
data.changed.to_allowinteger
data.changed.to_askinteger
data.changed.to_blockinteger
data.decided_atstring (date-time) or null
data.decided_byobject or null
data.decided_by.kindstring — one of user, api_keyObligatorio.
data.decided_by.namestringObligatorio.
data.directionstring — one of tightens, neutral, widensObligatorio.
data.evidenceobject or null
data.evidence.actionobject or nullA regression case's reviewed action in plain words, scrubbed; null when a secret still matched.
data.expires_atstring (date-time)Obligatorio.
data.input_digeststringObligatorio.
data.intent_policyobject or null
data.intent_policy.idstringObligatorio.
data.intent_policy.sentencestringObligatorio.
data.kindstring — one of monitor_to_enforce, dictionary_value, decisive_declaration, regression_caseObligatorio.
data.opened_atstring (date-time)Obligatorio.
data.policyobject or null
data.policy.namestringObligatorio.
data.policy.public_idstringObligatorio.
data.policy.versionintegerObligatorio.
data.public_idstringObligatorio.
data.resultobject or null
data.statestring — one of open, accepted, dismissed, superseded, expiredObligatorio.
data.table_namestring or null
data.valuestring or null
data.zoneobject or null
data.zone.idstringObligatorio.
data.zone.namestringObligatorio.
{
"data": {
"case": {
"action_line": "string",
"kind": "string",
"outcome_today": "string"
},
"changed": {
"sample": [
{
"action": "string",
"action_line": "string",
"category": "string",
"decision_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"occurred_at": "2026-01-15T14:32:05Z",
"verdict_after": "string",
"verdict_before": "string"
}
],
"to_allow": 0,
"to_ask": 0,
"to_block": 0
},
"decided_at": "2026-01-15T14:32:05Z",
"decided_by": {
"kind": "user",
"name": "release-bot"
},
"direction": "tightens",
"evidence": {
"action": "string"
},
"expires_at": "2026-01-15T14:32:05Z",
"input_digest": "string",
"intent_policy": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"sentence": "string"
},
"kind": "monitor_to_enforce",
"opened_at": "2026-01-15T14:32:05Z",
"policy": {
"name": "release-bot",
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"version": 3
},
"public_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"result": {},
"state": "open",
"table_name": "release-bot",
"value": "string",
"zone": {
"id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"name": "release-bot"
}
}
}