Skip to main content

Update a reward by ID

PUT 

/reward/:rewardId

Update a reward by ID

Request

Path Parameters

    rewardId rewardIdrequired

    The unique identifier for the reward to update

Body

Data for updating the reward

    requiredPoints integer

    Possible values: <= 1000000

    Points required to claim the reward

    name rewardName (string)

    Possible values: <= 32 characters

    Name of the reward

    expiresAt date-timenullable

    Expiration date for special rewards

    description string

    Detailed description of the reward

    data stringnullable

    Additional JSON metadata for triggers, actions, or general easy-access data

    maxClaims numbernullable

    Maximum amount of times the reward can be claimed globally

    thumbnail urlnullable

    Thumbnail image for the reward

Responses

Reward updated successfully

Schema

    description stringrequired

    Detailed description of the reward

    rewardTypeId rewardTypeId (string)required

    Unique identifier for RewardType

    expiresAt date-timenullable

    Expiration date for special rewards

    name rewardName (string)required

    Possible values: <= 32 characters

    Name of the reward

    projectId stringrequired

    ID of the project associated with the reward

    requiredPoints integer

    Possible values: <= 1000000

    Points required to claim the reward

    userRewardCount integer

    Number of times this reward has been redeemed.

    thumbnail urinullable

    Optional URL for the reward's thumbnail image.

    myUserRewardCount integer

    Number of times this reward has been redeemed by the current user.

    createdAt date-time

    Time representation of entity creation

    maxClaims integernullable

    Maximum number of times this reward can be redeemed.

    id rewardId (string)

    Unique identifier for Reward

    data stringnullable

    Additional JSON metadata for triggers, actions or general easy-access data

Loading...