Update a reward
Partially update a reward.
name, description, category, unit_cost, max_total, max_per_participant, status, available_from, available_until, and metadata. The redemption_type and asset_id fields are immutable and cannot be updated.
Reward names must be unique within a program. A 409 is returned with code name_exists if the name conflicts with another reward.
To archive a reward, set status to ARCHIVED.
Authorizations
API key passed in the X-API-Key header.
Body
Reward updates
Start of the availability window (RFC 3339, null if always available)
"2024-01-01T00:00:00Z"
End of the availability window (RFC 3339, null if no end date)
"2024-12-31T23:59:59Z"
Grouping label for organizing rewards in the catalog
100"Gift Cards"
Details about the reward
1000"Redeemable for a $10 gift card"
Per-participant redemption limit (UNIT_BASED only, null = unlimited)
2
Global inventory limit (UNIT_BASED only, null = unlimited)
100
Custom key-value data attached to this reward
Display name for the reward
1 - 255"$10 Gift Card"
Lifecycle status: DRAFT, ACTIVE, OUT_OF_STOCK, or ARCHIVED
DRAFT, ACTIVE, OUT_OF_STOCK, ARCHIVED "ACTIVE"
Cost per unit in the reward's asset (decimal string for precision, must be positive)
"1000.00"
Response
Reward updated
A reward with its pricing, inventory, availability, and metadata
Asset used to price this reward
"550e8400-e29b-41d4-a716-446655440002"
Start of the availability window (RFC 3339, null if always available)
"2024-01-01T00:00:00Z"
End of the availability window (RFC 3339, null if no end date)
"2024-12-31T23:59:59Z"
Grouping label for organizing rewards in the catalog
"Gift Cards"
When this reward was created (RFC 3339)
"2024-01-15T10:30:00Z"
Details about the reward
"Redeemable for a $10 gift card"
Unique identifier for this reward
"550e8400-e29b-41d4-a716-446655440000"
Per-participant redemption limit (UNIT_BASED only, null = unlimited)
2
Global inventory limit (UNIT_BASED only, null = unlimited)
100
Custom key-value data attached to this reward
Display name for this reward
"$10 Gift Card"
Program this reward belongs to
"550e8400-e29b-41d4-a716-446655440001"
Total number of times this reward has been redeemed
42
How the reward is redeemed: UNIT_BASED (discrete quantities) or AMOUNT_BASED (variable amounts)
"UNIT_BASED"
Lifecycle status: DRAFT, ACTIVE, OUT_OF_STOCK, or ARCHIVED
"ACTIVE"
Cost per unit in the reward's asset (decimal string for precision)
"1000.00"
When this reward was last modified (RFC 3339)
"2024-01-15T10:30:00Z"