# 部分更新商品的奖励积分 按照商品SKU来部分更新一个或多个商品的奖励积分数量。用户在购买指定商品后可获得这些奖励积分。 更新奖励积分的原则: * 如果某个商品尚无奖励积分,则在amount字段中发送非零值将创建奖励积分。 * 如果某个商品已有奖励积分,则在amount字段中发送非零值将更新原有值。 * 如果amount设置为0,则会删除该商品的现有奖励积分。 与PUT方法(设置商品的奖励积分)不同,此PATCH方法不会覆盖项目中所有商品的现有奖励积分,它只会更新指定的商品。 单个请求最多可以更新100个商品。同一请求中不能包含重复的商品SKU。 Endpoint: PATCH /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