# 设置商品的奖励积分 按SKU将奖励积分分配给一件或多件商品。用户购买这些商品后将获得奖励积分。 请注意,此PUT请求将覆盖项目中商品所有先前设置的奖励积分。 为了避免无意中删除奖励积分,请在每个PUT请求中包含所有商品及其各自的奖励积分。 如果只想更新特定商品的奖励积分,同时保留其他商品的奖励积分,则应使用GET请求检索当前的奖励积分集,修改所需商品的奖励积分,然后返回包含特定商品更新后奖励积分的奖励积分集。 Endpoint: PUT /v2/project/{project_id}/admin/items/{value_point_sku}/value_points/rewards Version: 2.0.0 Security: basicAuth ## Path parameters: - `project_id` (integer, required) 项目ID。您可以在您的发布商帐户项目名称旁边找到。 Example: 44056 - `value_point_sku` (string, required) 奖励积分SKU。 Example: "value_point_3" ## Request fields (application/json): - `amount` (integer, required) 奖励积分的数量。 - `sku` (string, required) 唯一商品ID。 SKU只能包含大小写英文字母和数字字符、句点、破折号和下划线。 Example: "booster_mega_1" ## Response 401 fields (application/json): - `errorCode` (integer) Example: 1020 - `errorMessage` (string) Example: "[0401-1020]: Error in Authentication method occurred" - `statusCode` (integer) Example: 401 ## Response 404 fields (application/json): - `errorCode` (integer) Example: 4001 - `errorMessage` (string) Example: "[0401-4001]: Item with sku = 'electric_shiel' not found" - `statusCode` (integer) Example: 404 ## Response 204 fields