publishEquation
SENSITIVE — changes live storefront prices immediately. Makes a saved, validated draft typescriptEquation the LIVE pricing equation of its process, post-processing, or the order level; the previously live equation stops pricing at once, and every customer quote from now on uses the new one. Do this ONLY when the manufacturer explicitly asked to make this specific equation live, after generateQuote(equationId) on several real parts compared against the live price, and after telling them what will change. Never publish to 'try it out': generateQuote(equationId) tests a draft without publishing. Requires confirm=true and the id of the equation you are replacing (or NONE). Before this, a new draft prices nothing (lint PROCESS_NO_LIVE_EQUATION). Reversal: publish the previously live equation again with this tool. The same action is also available as save(entity="typescriptEquation", id=, data={isLive: true, replacesLiveEquationId, confirm: true}).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be true. Send it only after the manufacturer explicitly asked to make this equation live and you tested it with generateQuote(equationId) on several real parts. | |
| equationId | Yes | The typescriptEquation id (UUID) to make live. It must be a saved, validated equation of this manufacturer. | |
| replacesLiveEquationId | Yes | The id of the equation that is live right now for the same process / post-processing / order level, or the string NONE when nothing is live yet. Read it first: query(entity="typescriptEquation", filter="processPricesId==<id>;isLive==true") or processPrices.activeTypescriptEquationId. A mismatch is refused. |