Overview
Update an existing restriction rule. Only specified fields are modified (partial update).Endpoint
Path Parameters
UUID of the restriction rule to update
Request Body
Updatable Fields
Rule type label
Enable or disable the rule without deleting it
Enable/disable automatic date synchronization
Legacy single-number format only (batch updates not supported)To update multiple numbers, delete and recreate.
Maximum bet amount per jugada (must be positive)
Maximum total amount per ticket (must be positive)
Base amount for dynamic limits (≥ 0)
Sales percentage for dynamic limits (0-100)
Whether percentage applies per-vendedor
Minutes before draw to stop sales (0-30)
ISO 8601 date filter (or null to remove filter)
Hour filter 0-23 (or null to remove filter)
Multiplier UUID
Custom message (1-255 characters, or null to remove)
Response
Indicates if the request was successful
Updated restriction rule (see List endpoint for full schema)
Examples
Validation Rules
Cutoff rules cannot mix with other types
Cutoff rules cannot mix with other types
Cannot update a cutoff rule to have amount limits, or vice versa.
Auto-date validation
Auto-date validation
If setting
isAutoDate = true:numberfield must be omitted or null- Rule must have
maxAmountormaxTotal
Dynamic limits validation
Dynamic limits validation
salesPercentage requires:- Value between 0-100
- Used with amount-based rules only
appliesToVendedor only valid when salesPercentage is present.Response Example
Error Responses
Implementation Details
Fromsrc/api/v1/controllers/restrictionRule.controller.ts:15-22:
Related Endpoints
Get Restriction
View rule details
Delete Restriction
Soft delete a rule
Restore Restriction
Restore a deleted rule