ENUM
UpdateCommunityPointsCustomRewardErrorCode
The possible reasons updating a custom Community Points reward in a channel could fail.
link GraphQL Schema definition
1 enum UpdateCommunityPointsCustomRewardErrorCode { 2 3 # An unexpected error occurred. 4 5 6 # The current user is not allowed to update a reward in this channel. 7 8 9 # The reward was not found. 10 11 12 # The title failed AutoMod. 13 14 15 # The prompt failed AutoMod. 16 17 18 # The cost is invalid. Costs must be greater than 0. 19 20 21 # The maxPerStream is invalid. maxPerStream must be greater than 0. 22 23 24 # The title is invalid. Titles must not be empty and must be at most 45 characters 25 # long. 26 27 28 # The background color is invalid. Backgrounds must be a valid hex color, for 29 # example "FF0000". 30 31 32 # A reward with the provided title already exists. Custom reward titles must be 33 # unique. 34 35 36 # The maxPerUserPerStream is invalid. maxPerUserPerStream must be greater than 0. 37 38 39 # The globalCooldown is invalid. globalCooldown must be greater tham 0. 40 41 }