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

    name string

    Name of the reward

    description string

    Detailed description of the reward

    thumbnail urinullable

    Optional URL for the reward's thumbnail image.

    requiredPoints integer

    Possible values: <= 1000000

    Points required to claim the reward

    expiresAt date-timenullable

    Expiration date for special rewards

    maxClaims numbernullable

    Maximum amount of times the reward can be claimed globally

    data stringnullable

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

Responses

Reward updated successfully

Schema

    description stringrequired

    Detailed description of the reward

    thumbnail urinullable

    Optional URL for the reward's thumbnail image.

    id rewardId (string)

    Unique identifier for Reward

    projectId stringrequired

    ID of the project associated with the reward

    expiresAt date-timenullable

    Expiration date for special rewards

    rewardTypeId rewardTypeId (string)required

    Unique identifier for RewardType

    userRewardCount integer

    Number of times this reward has been redeemed.

    myUserRewardCount integer

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

    requiredPoints integer

    Possible values: <= 1000000

    Points required to claim the reward

    name stringrequired

    Name of the reward

    createdAt date-time

    Time representation of entity creation

    data stringnullable

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

    maxClaims integernullable

    Maximum number of times this reward can be redeemed.

Loading...