v1
latestOpenAPI 3.0.02026-07-26868170.3 KBReward
Update a reward
Edit the data of an existing reward. All new granted rewards will inherit of the updated data.
patch/loyalty/v1/rewards/{id}
Path parameters
idstring required
Reward external identifier.
Request body
Example request
{
"name": "Nom",
"description": "Description",
"rich_description": "Rich description",
"image_url": "/path/to/picture",
"external_id": "reward_ext_id_12",
"forced_validity": true,
"forced_valitidy_end": "2024-08-27 17:19:00",
"forced_validity_start": "2024-08-27 17:19:00",
"max_attribution_count": 1000,
"monetary": true,
"monetary_type": "percentage | value",
"nqp_value": 12,
"valitidy_interval_count": 1,
"validity_interval_type": "days;weeks;months;years"
}Response
Reward has successfully been updated.