UpdatePromoCodeRequest
@gravity-rail/sdk / UpdatePromoCodeRequest
Interface: UpdatePromoCodeRequest
Patch an existing campaign code.
Every field is optional and model_fields_set decides what to write, so
omitting maxRedemptions leaves the cap untouched while sending
null lifts it. A model that could not tell those apart would silently
uncap a campaign on any partial edit.
code is accepted but the service refuses it once the campaign has
redemptions — renaming a code that is already in adverts and already
attributed would break the attribution the code exists to provide.
Properties
bonusCredits?
optionalbonusCredits:number|null
campaign?
optionalcampaign:string|null
code?
optionalcode:string|null
description?
optionaldescription:string|null
expiresAfterDays?
optionalexpiresAfterDays:number|null
isActive?
optionalisActive:boolean|null
maxRedemptions?
optionalmaxRedemptions:number|null
orgProductId?
optionalorgProductId:number|null
Self-service Organization product granted for one month by direct billing; null clears the plan benefit.
validFrom?
optionalvalidFrom:string|null
validUntil?
optionalvalidUntil:string|null