Xsolla-logo

報酬チェーンを更新するServer-sideAdmin

put/v2/project/{project_id}/admin/reward_chain/id/{reward_chain_id}

特定の報酬チェーンを更新します。

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

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

Example: 44056
reward_chain_id
required
integer

Reward chain ID.

Example: 101
Request Body schema: application/json
One of:

報酬チェーン。

required
object

アイテム名のローカライズを行ったオブジェクトです。小文字の2文字言語コード.

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
date_start
required
string <date-time>

Date when your reward chain starts.

required
Array of objects
Array
required
object

アイテム名のローカライズを行ったオブジェクトです。小文字の2文字言語コード.

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
required
object
amount
required
integer

Step price in value points.

required
Array of objects
Array
sku
required
string [ 1 .. 255 ] characters ^[a-zA-Z0-9_\\-–.]*$

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

quantity
required
integer

Item quantity.

step_id
required
integer or null

Unique step ID.

image_url
string or null

画像URL。

is_enabled
required
boolean
date_end
string or null <date-time>

Date when your reward chain promotion ends. Can be null. If date_end is null, the reward chain will be unlimited by time.

object

アイテムの説明用のローカライズされたオブジェクト。小文字の2文字言語コード.

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
image_url
string or null

画像URL。

object

アイテムの長い説明のためのローカライゼーションを持つオブジェクト。小文字の2文字言語コード

ar
string or null
bg
string or null
cn
string or null
cs
string or null
de
string or null
en
string or null
es
string or null
fr
string or null
he
string or null
it
string or null
ja
string or null
ko
string or null
pl
string or null
pt
string or null
ro
string or null
ru
string or null
th
string or null
tr
string or null
tw
string or null
vi
string or null
order
integer

配列順序を定義します。

(interval_type = weekly (object or null)) or (interval_type = monthly (object or null))

Recurrent reset period of the reward chain.

One of:

Weekly type of reward chain refresh.

interval_type
required
string

Frequency of the recurrent reset of the reward chain.

Value: "weekly"
time
required
string((0[0-9]|1[0-9]|2[0-3]):00:00)(\+|-)(0[0-9]|1...

Time when the reward chain is reset in the desired time zone (rounding to hours).

For example, the set time for the reward chain reset is 01:00 for the Kuala Lumpur time zone (GMT+8). In this case, the value of the time parameter is 01:00:00+08:00.

day_of_week
required
integer [ 1 .. 7 ]

報酬チェーンがリセットされる曜日。1は月曜日、7は日曜日。

Responses
204

Reward chain was successfully updated.

401

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

404

Reward chain not found.

422

Invalid request.

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