---
title: "Update Campaign Reward Assignment"
method: PUT
path: "/v1/loyalties/{campaignId}/rewards/{assignmentId}"
tags: ["Loyalties"]
---

# Update Campaign Reward Assignment

`PUT /v1/loyalties/{campaignId}/rewards/{assignmentId}`

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

## Request body

- LoyaltiesRewardsUpdateAssignmentRequestBody — Request body schema for **PUT** `v1/rewards/{rewardId}/assignments/{assignmentId}`.
  - `parameters` object — An object that defines the price of the reward in loyalty points.
    - `loyalty` object — Stores the points parameter.
      - `points` integer — Defines how many points are required to obtain the reward.
      - `auto_redeem` boolean, nullable — Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.

## Response `200`

Returns a reward assignment with an updated points value.

- LoyaltiesRewardsUpdateAssignmentResponseBody
  - `id` string, required — Unique reward assignment ID, assigned by Voucherify.
  - `reward_id` string, required — Associated reward ID.
  - `created_at` string, 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_at` string, 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_id` string, required — Related object ID to which the reward was assigned.
  - `related_object_type` 'campaign', required — Related object type to which the reward was assigned.
  - `parameters` object — Defines the cost of the reward.
    - `loyalty` object, required — Defines the equivalent points value of the reward.
      - `points` integer — The number of points required to redeem the reward.
      - `auto_redeem` boolean, nullable — Determines if the reward is redeemed automatically when the customer reaches the sufficient number of points to redeem it. Value `true` means that the automatic reward redemption is active. Only one reward can be set to be redeemed automatically in a loyalty campaign, i.e. only one can have the value `true`.

---

[API](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions.md) · [All operations](https://skmtc.net/voucherifyio/apis/voucherify-api-async-actions/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/voucherifyio/voucherify-api-async-actions/revisions/4982266e0494/schema)
