pots

Declare which kind of source prevails over which

Changed on

A new rule. It acts on every stored fact at the next read; nothing is rewritten.

post/pots/{pot_id}/constitution/precedence-rules

Request

Path parameters

pot_idstring uuid required

Request body

later_onlyboolean

Prevail only when the over fact starts holding after the under one (both valid_from known). False: prevail whatever the dates.

tie'later_valid_from' | 'none'

When a pair matches the rule both ways (overlapping selectors): the later valid_from prevails, or none (the pair is pending).

effect'supersede' | 'flag_only'

supersede: the other fact is not current. flag_only: nothing changes but the answer names the preferred fact.

priorityinteger

Lower is evaluated first.

activeboolean
axiom_idstring nullable

The rule axiom that states it in prose, if there is one.

updated_bystring nullable

Response

Successful Response

later_onlyboolean

Prevail only when the over fact starts holding after the under one (both valid_from known). False: prevail whatever the dates.

tie'later_valid_from' | 'none'

When a pair matches the rule both ways (overlapping selectors): the later valid_from prevails, or none (the pair is pending).

effect'supersede' | 'flag_only'

supersede: the other fact is not current. flag_only: nothing changes but the answer names the preferred fact.

priorityinteger

Lower is evaluated first.

activeboolean
axiom_idstring nullable

The rule axiom that states it in prose, if there is one.

idstring required
created_atstring required
created_bystring nullable
updated_atstring required
updated_bystring nullable

Changes