Xsolla-logo

Set value points for itemsServer-sideAdmin

put/v2/project/{project_id}/admin/items/{item_sku}/value_points/rewards

Assigns value points to one or several items by an SKU. Users receive value points after they purchase these items.

Note that this PUT request overwrites all previously set value points for items in the project.

To avoid unintentional deletion of value points, include all items and their respective value points in each PUT request.

If you only want to update the value points for a specific item while preserving the value points of other items, you should retrieve the current set of value points using a GET request, modify the desired item's value points, and then send the modified set of value points back with the updated value points for the specific item.

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

プロジェクトID。このパラメータは、ドメインページのプロジェクト名の横にあります。

Example: 44056
item_sku
required
string

アイテムSKU。

Example: booster_mega_1
Request Body schema: application/json
Array
sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

一意のアイテムID。SKUには、英小文字、ピリオド、ダッシュ、およびアンダースコアのみが含まれます。

amount
required
integer

Amount of value points.

Responses
204

Value point rewards for items were successfully updated.

401

基本認証が不合格または不正です。基本認証または正しい認証情報を使用したことを確認してください。

404

アイテムが見つかりません。project_idskuが正しいことを確認してください。

Request samples
application/json
[
  • {
    },
  • {
    }
]
Response samples
application/json
{
  • "errorCode": 1020,
  • "errorMessage": "[0401-1020]: Error in Authentication method occurred",
  • "statusCode": 401
}