Confirm the rules that were read back
Signs and applies the rules last returned by proposeRules for the role. The hash must match the pending proposal; otherwise the call is refused with 409 and nothing changes.
Authorization
consoleSession csrfToken Set by GET /console/api/session. HttpOnly, SameSite=Strict, 8 hours.
In: cookie
The csrf value from GET /console/api/session, an HMAC of the session id. Required on every POST.
In: header
Request Body
application/json
The role and the rules_hash from the read back.
The rules to confirm.
Whose rules.
"merchant"Value in
- "merchant"
- "buyer"
The hash returned by proposeRules.
^[0-9a-f]{64}$Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/console/api/rules/confirm" \ -H "Content-Type: application/json" \ -d '{ "role": "merchant", "rules_hash": "60904ab97652ddc3692a557879844ae9cd949010d18372baa83ec7bcda755d7d" }'{ "role": "merchant", "rules_hash": "60904ab97652ddc3692a557879844ae9cd949010d18372baa83ec7bcda755d7d", "policy_hash": "7889498f53fe2a84409a9030733cb326fb9f8b662e9c243f9bf6b0c3489581ec", "previous_kept": true, "source": "typed"}Turn a sentence into rules and read them back POST
Parses a plain sentence into the refund rules and returns them in words with a before and after table. Nothing changes until `confirmRules` is called with the returned `rules_hash`. The hard ceiling of $100.00 per refund cannot be raised by any sentence.
Is speech to text available on this server GET
Reports whether the local speech model and ffmpeg are present, the recording limits and the intents the assistant understands. Typing always works.