Parameters
JSON body
Request body
application/jsonproductCodestringRequiredProduct code whose pricelist is being replaced.
my-productrulesobject[]RequiredFull replacement of the rule list. Pass an empty array to clear all rules.
idstringRequiredStable UUID assigned by the admin form.
namestringRequiredHuman label for the rule.
enabledbooleanRequiredDisabled rules are kept but ignored by the resolver.
prioritynumberRequiredHigher value wins; ties broken by specificity.
validFromstring | nullRequiredInclusive lower date bound (YYYY-MM-DD) or null.
validTostring | nullRequiredInclusive upper date bound (YYYY-MM-DD) or null.
weekdaysnumber[] | nullRequiredISO weekdays (Mon=1 … Sun=7), or null for every day.
timeFromstring | nullRequiredInclusive lower time-of-day bound (HH:mm) or null.
timeTostring | nullRequiredInclusive upper time-of-day bound (HH:mm) or null.
variantCodestring | nullRequiredVariant code scope, or null for all variants of this product.
pricenumberRequiredPrice applied when this rule wins. Margin is clamped to >= 0 by the resolver.