UpsertRegulationRequest
@raizfc/contracts / UpsertRegulationRequest
Type Alias: UpsertRegulationRequest
UpsertRegulationRequest =
Readonly<{locked?:boolean;override?:boolean;overrideReason?:string;pdf?:Readonly<{label:string;url:string; }>;structuredRules: readonlyRegulationStructuredRuleDto[];text:string;version:number; }>
Defined in: championship/championship.dto.ts:367
SPEC-API-CHAMP-001 lists a single PUT .../regulation endpoint (no separate lock action), so
locking is folded into this same request (locked) rather than a new route. While the current
regulation is locked, a normal call is rejected with REGULATION_LOCKED (409) unless override
is set with a non-empty overrideReason — SPEC-DOMAIN-CHAMPIONSHIP-001: "Alterações de
regulamento após bloqueio exigem override auditado e aviso."