Xsolla-logoXsolla Developers
または
パブリッシャーアカウントへ

指定したユーザーのプロモーション制限を設定するServer-sideAdmin

put/v2/project/{project_id}/admin/user/limit/promotion/id/{promotion_id}

Sets the number of times the specified user can use a promotion within the limit applied after it was increased or decreased.

User limit API allows you to limit the number of times users can use a promotion. For configuring the user limit itself, go to the Admin section of the desired promotion type:

SecuritybasicAuth
Request
path Parameters
project_id
required
integer

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

Example: 44056
promotion_id
required
integer

プロモーションID。プロジェクト内での一意のプロモーション識別子。

Example: 111425
Request Body schema: application/json
required
object
user_external_id
required
string non-empty ^\S+$

ユーザーexternal ID。

available
required
integer >= 0

適用された制限内でユーザーが利用できる残りのアイテム数またはプロモーション利用回数。

Responses
200

ユーザーのプロモーション制限が正常に受信されました。

401

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

404

アイテムが見つかりません。

422

無効なリクエストです。

Request samples
application/json
{
  • "available": 0,
  • "user": {
    }
}
Response samples
application/json
{
  • "per_user": {
    }
}