v1

latestOpenAPI 3.0.1MIT2026-07-263151,3912.3 MB
Loyalties

Update Campaign Reward Assignment

Updates rewards parameters, i.e. the points cost for the specific reward.

put/v1/loyalties/{campaignId}/rewards/{assignmentId}

Request body

Response

Returns a reward assignment with an updated points value.

idstring required

Unique reward assignment ID, assigned by Voucherify.

reward_idstring required

Associated reward ID.

created_atstring date-time required

Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format.

updated_atstring date-time nullable required

Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format.

object'reward_assignment' required

The type of the object represented by the JSON. This object stores information about the reward assignment.

related_object_idstring required

Related object ID to which the reward was assigned.

related_object_type'campaign' required

Related object type to which the reward was assigned.

Example response

{
  "id": "rewa_PbIRoMXpwe5QhobW4JKu0VjH",
  "reward_id": "rew_C7wS9eHFDN4CIbXI5PpLSkGY",
  "created_at": "2022-08-11T14:49:22.586Z",
  "updated_at": "2022-08-11T16:01:34.885Z",
  "related_object_id": "camp_wciTvaOfYmAa3EmIIW3QpXXZ"
}