Skip to main content
PUT
Update program reward assignment

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required

Path Parameters

programId
string
required

Identifies the loyalty program. Format lprg_[a-f0-9]+.

Pattern: ^lprg_[a-f0-9]+$
rewardId
string
required

Identifies the reward. Format lrew_[a-f0-9]+.

Pattern: ^lrew_[a-f0-9]+$

Body

application/json

Request body schema for PUT /v2/loyalties/programs/{programId}/rewards/{rewardId}.

stock
object
required

Reward stock configuration. When type is UNLIMITED, limited must not be provided. When type is LIMITED, limited is required.

Response

The updated reward assignment.

Response body schema for PUT /v2/loyalties/programs/{programId}/rewards/{rewardId}.

reward_id
string
required

Unique reward identifier.

Pattern: ^lrew_[a-f0-9]+$
stock
object
required

Stock configuration of the assignment.

redeemed
number
required

Number of times the reward has been redeemed within the program. Defaults to 0.

created_at
string<date-time>
required

Assignment creation timestamp (ISO 8601).

updated_at
string<date-time> | null
required

Last update timestamp (ISO 8601), or null when never updated.

object
string
required

Object type marker. Always program_reward.

Allowed value: "program_reward"