Update the store's agent rules
Applies from the next checkout, for Undo's agent and every MCP agent. Each change is recorded in the store's event chain.
Request Body
application/json
The rules to apply from the next checkout.
The store's rules for agents. They apply from the next checkout.
Refuse agents scoring below this. Null turns it off.
1 <= value <= 100Give agents scoring below this a longer window. Null turns it off.
1 <= value <= 100How much longer.
15 <= value <= 1440Refuse agents without a registered operator key.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/api/merchant/rules" \ -H "Content-Type: application/json" \ -d '{ "blockBelow": null, "extendBelow": 50, "extendMinutes": 360, "blockUnverified": false }'{ "blockBelow": null, "extendBelow": 50, "extendMinutes": 360, "blockUnverified": false}Get the store's agent rules GET
The rules the store applies to agents at checkout: block below a trust score, lengthen the undo window below a score, or accept only registered operators.
Stream the store's activity GET
Every step Undo records, newest first (up to 60). Pass `after` to get only events newer than that id.