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 rewardName (string)

    Possible values: <= 32 characters

    Name of the reward

    maxClaims numbernullable

    Maximum amount of times the reward can be claimed globally

    thumbnail urlnullable

    Thumbnail image for the reward

    data stringnullable

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

    requiredPoints integer

    Possible values: <= 1000000

    Points required to claim the reward

    expiresAt date-timenullable

    Expiration date for special rewards

    description string

    Detailed description of the reward

Responses

Reward updated successfully

Schema

    createdAt date-time

    Time representation of entity creation

    thumbnail urinullable

    Optional URL for the reward's thumbnail image.

    name rewardName (string)required

    Possible values: <= 32 characters

    Name of the reward

    expiresAt date-timenullable

    Expiration date for special rewards

    id rewardId (string)

    Unique identifier for Reward

    data stringnullable

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

    projectId stringrequired

    ID of the project associated with the reward

    maxClaims integernullable

    Maximum number of times this reward can be 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

    description stringrequired

    Detailed description of the reward

    userRewardCount integer

    Number of times this reward has been redeemed.

    rewardTypeId rewardTypeId (string)required

    Unique identifier for RewardType

Loading...