Aller au contenu

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.

Fenêtre 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"
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 : proposals:write

ParamètreTypeDescription
public_idstringObligatoire.
ParamètreTypeDescription
zone_idstring (uuid) or nullThe deciding zone: a proposal above it answers 404.
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.
ChampTypeDescription
dataobjectObligatoire. 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.kindstringObligatoire.
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_keyObligatoire.
data.decided_by.namestringObligatoire.
data.directionstring — one of tightens, neutral, widensObligatoire.
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)Obligatoire.
data.input_digeststringObligatoire.
data.intent_policyobject or null
data.intent_policy.idstringObligatoire.
data.intent_policy.sentencestringObligatoire.
data.kindstring — one of monitor_to_enforce, dictionary_value, decisive_declaration, regression_caseObligatoire.
data.opened_atstring (date-time)Obligatoire.
data.policyobject or null
data.policy.namestringObligatoire.
data.policy.public_idstringObligatoire.
data.policy.versionintegerObligatoire.
data.public_idstringObligatoire.
data.resultobject or null
data.statestring — one of open, accepted, dismissed, superseded, expiredObligatoire.
data.table_namestring or null
data.valuestring or null
data.zoneobject or null
data.zone.idstringObligatoire.
data.zone.namestringObligatoire.
{
"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"
}
}
}