Apps

Queue a rule candidate found outside the review loop

Changed on

For a miner that reads the registry or an ERP change log. The call is idempotent on external_key: re-submitting a key refreshes an open candidate's sentence, evidence and card (created: false), and refreshes only the evidence of a promoted or dismissed one, which keeps its decision. The candidate waits for a human; the call never changes the app's logic. When proposed_card is present, promotion drafts it as is. Requires the configure access tier on the app.

post/v1/apps/{id}/rule-candidates

Request

  • Base URL
    https://api.talonic.com
  • Auth
    HTTP bearer

Path parameters

id, string uuid required

Request body

AppRuleCandidateInput required
rule, string required

The rule sentence the human approves or dismisses.

external_key, string required

Miner-stable id; the same key refreshes the existing candidate instead of adding a duplicate.

source, 'registry' | 'erp' | 'both' required
title, string nullable
evidence, object nullable

Evidence for the reviewer: support, counter, counter_names, items, repair, area, examples, counterexamples, changes.

proposed_card, object nullable

An already-compiled rule card; promotion drafts it as is.

Response

The candidate and whether the call created it.

object required
candidate, AppRuleCandidate
created, boolean

Changes