Overview
Update an existing multiplier. Supports partial updates (only specified fields are modified).Endpoint
PUT /api/v1/multipliers/:id (same behavior)
Authorization: ADMIN only
Path Parameters
UUID of the multiplier to update
Request Body
UUID of the lottery
Display name (2-32 characters)
Multiplier value (must be positive)
Multiplier type:
NUMERO or REVENTADOISO 8601 date (or null to remove filter)
Sorteo UUID (or null to remove filter)
Enable or disable the multiplier
Soft Delete
To soft delete a multiplier, send a DELETE request:Restore
Restore a soft-deleted multiplier:Response
Indicates if the request was successful
Updated multiplier (see Get Multiplier for full schema)
Examples
Response Example
Snapshot Immutability
Best Practices
Use soft delete instead of permanent deletion
Use soft delete instead of permanent deletion
Deactivate multipliers with
isActive: false instead of permanently deleting them.This preserves audit trails and allows restoration if needed.Test changes in development first
Test changes in development first
Before updating production multipliers:
- Test in development environment
- Review exposure analytics
- Communicate changes to operators
- Monitor initial sales after update
Document value changes
Document value changes
Keep a changelog of multiplier value changes for compliance and analysis:
Error Responses
Related Endpoints
Get Multiplier
View multiplier details
List Multipliers
View all multipliers
Create Multiplier
Create new multiplier
Implementation Details
Fromsrc/api/v1/controllers/multiplier.controller.ts:11-14:
src/api/v1/controllers/multiplier.controller.ts:16-20:
src/api/v1/controllers/multiplier.controller.ts:22-25: