Update a reward
<Warning><Badge color="yellow">BETA endpoint</Badge>
This is a work-in-progress documentation of a BETA endpoint. The parameters, fields, request and response bodies, and other data may subject to change. If you want to share feedback or improvements, contact Voucherify support or your Technical Account Manager.
</Warning>Updates an existing reward. When type is provided as MATERIAL the material object is required and digital must be null; when type is provided as DIGITAL the digital object is required and material must be null.
In DRAFT status all properties can be updated. In ACTIVE/INACTIVE status only the following properties can be updated: name, metadata, refunds, validity_hours, start_date, end_date, costs.
Path parameters
Unique reward identifier, prefixed with lrew_.
Request body
Example request
{
"validity_hours": {
"daily": [
{
"start_time": "09:00",
"end_time": "17:00"
}
]
}
}Response
The updated reward.
Example response
{
"validity_hours": {
"daily": [
{
"start_time": "09:00",
"end_time": "17:00"
}
]
}
}