# Update data against the reward awarded to member This endpoint updates the details of a reward awarded to a specific member. It requires assign ID, reward ID and member ID, along with relevant assignment details such as the source type and collected data. This ensures businesses can track issued rewards and manage member benefits effectively. Endpoint: PATCH /rewards/{{reward_id}}/users/{{member_id}}/assign Version: 3.0.0 Security: ## Path parameters: - `rewardId` (string, required) Unique identifier of the reward being assigned. - `memberId` (string, required) Unique identifier of the member (user) receiving the reward. ## Request fields (application/json): - `assign_id` (string, required) Enter the unique identifier generated when assigning the reward. Example: "fdc959eb-e858-11ef-9b78-0affebd3413d" - `reward_id` (string, required) Enter the unique identifier of the reward being assigned. Example: "Reward1" - `user_id` (string, required) Enter the user ID of the member to whom the reward was awarded. Example: "XYZ@annexcloud.com" - `member_reward_status` (string) Enter the possible status of the reward. Example: "Awarded" - `collected_data` (object) Enter the additional details collected during reward redemption from the member. - `collected_data.street` (string) Enter the street address where the reward was awarded. Example: "Satara Road" - `collected_data.location` (string) Enter the city or region where the reward was awarded. Example: "Pune" - `collected_data.date` (string) Enter the redemption date in YYYY-MM-DD format. Example: "2024-01-01" - `collected_data.date_time` (string) Enter the exact date and time of redemption in YYYY-MM-DD HH:mm:ssZ format. Example: "2024-01-01T00:00:00" - `benefit_details` (object) Enter the benefit details relevant to the reward. - `benefit_details.reward_code` (string) Enter the code associated with the reward. Example: "BIRTHDAY" - `benefit_details.order_id` (string) Enter the associated order ID, if the reward was linked to a purchase. Example: "0987766" ## Response 200 fields (application/json): - `site_id` (string) Displays the unique identifier of the site where the reward was awarded. Example: "95233740" - `assign_id` (string) Displays the unique identifier generated when assigning the reward. Example: "fdc959eb-e858-11ef-9b78-0affebd3413d" - `reward` (object) Displays details of the awarded reward. - `reward.reward_id` (string) Displays the unique identifier of the awarded reward. Example: "Reward1" - `reward.reward_name` (string) Displays the name of the awarded reward. Example: "Test Reward 1" - `reward.user_id` (string) Displays the user ID of the member to whom the reward was awarded. Example: "xyz@annexcloud.com" - `reward.member_reward_status` (string) Displays the updated status of the reward for the member. Example: "Used" - `reward.collected_data` (object) Displays the redemption data that is collected from the member. - `reward.collected_data.street` (string) Displays the street address where the reward was awarded. Example: "Satara Road" - `reward.collected_data.location` (string) Displays the city or region where the reward was awarded. Example: "Pune" - `reward.collected_data.date` (string) Displays the redemption date in YYYY-MM-DD format. Example: "2024-01-01" - `reward.collected_data.date_time` (string) Displays the exact date and time of redemption in YYYY-MM-DD HH:mm:ssZ format. Example: "2024-01-01T00:00:00+0000" - `reward.benefit_details` (object) Displays the benefit details relevant to the cancelled reward. - `reward.benefit_details.reward_code` (string) Displays the code associated with the reward. Example: "BIRTHDAY" - `reward.benefit_details.used_date` (string) Displays the date and time the reward was used in YYYY/MM/DD HH:mm:ssZ format. For cancelled rewards, this is typically empty. Example: "2024-01-01T00:00:00+0000" - `reward.benefit_details.order_id` (string) Displays the associated order ID, if the reward was linked to a purchase. This is empty for cancellations with no prior usage. Example: "0987766"