{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/narmi/main/json-schema/narmi-account-alert-rule-request-schema.json", "title": "AccountAlertRuleRequest", "x-generated": "2026-10-12", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/narmi-alerts-api-openapi.yml#/components/schemas/AccountAlertRuleRequest", "type": "object", "properties": { "rrule": { "type": [ "string", "null" ], "description": "Recurrence rule in RFC 5545 format", "maxLength": 200 }, "alert_key": { "allOf": [ { "$ref": "#/$defs/AccountAlertRuleAlertKeyEnum" } ], "description": "Alert type, can be one of `available_balance` or `low_available_balance`.\n\n* `available_balance` - available_balance\n* `low_available_balance` - low_available_balance" }, "threshold_amount": { "type": [ "string", "null" ], "format": "decimal", "pattern": "^-?\\d{0,18}(?:\\.\\d{0,2})?$" }, "delivery_channels": { "type": "array", "items": { "allOf": [ { "$ref": "#/$defs/DeliveryChannelsEnum" } ], "description": "Delivery channels, can be one of `sms`, `push`, or `email`.\n\n* `sms` - sms\n* `push` - push\n* `email` - email" } }, "subscribed_accounts": { "type": "array", "items": { "type": "string", "format": "uuid" } } }, "required": [ "alert_key", "delivery_channels", "subscribed_accounts" ], "x-stoplight": { "id": "ehvxvi9lluber" }, "$defs": { "AccountAlertRuleAlertKeyEnum": { "enum": [ "available_balance", "low_available_balance" ], "type": "string", "description": "* `available_balance` - available_balance\n* `low_available_balance` - low_available_balance", "x-stoplight": { "id": "qthwkg8mfbejw" } }, "DeliveryChannelsEnum": { "enum": [ "sms", "push", "email" ], "type": "string", "description": "* `sms` - sms\n* `push` - push\n* `email` - email", "x-stoplight": { "id": "jds3ywpdugt4t" } } } }