Set fault rules
twin_set_faultsReplaces active fault rules so vendor APIs fail like real ones. Inject HTTP errors, latency, or lost responses per vendor, method, and path, or simulate duplicate and delayed webhooks.
Instructions
Replace the active fault rules, so the vendor APIs fail the way real ones do. Each rule: { name, vendor: quickbooks|jobber|housecallpro, method?, pathIncludes?, pathExcludes?, rate: 0-1, effect: { status?: HTTP error status, latencyMs?, message?, lostResponse?: do the work, then answer with status } }. A rule with webhook: TOPIC or "*" (and no method, pathIncludes, or pathExcludes) affects webhook deliveries instead: effect { duplicate?: true, delayMs? }. An empty list turns faults off. Bad rules change nothing. Answers with the active rules' names.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | Every rule to keep active, shaped as above; [] turns faults off |