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

ユーザーを禁止するServer-side

post/projects/{project_id}/users/{user_id}/ban

Add a ban to the user, either for a specific period or permanently.

SecurityServer
Request
path Parameters
project_id
required
string <uuid>

パブリッシャーアカウントからのログインプロジェクトID。

user_id
required
string <uuid>

ユーザーID。パブリッシャーアカウント > あなたのログインプロジェクト > ユーザーにあります。

Request Body schema: application/json
reason
required
string [ 1 .. 255 ] characters

A short explanation for why the user is being banned.

date_from
string or null

The starting date and time when the user ban becomes effective. Must be provided in the following format 'YYYY-MM-DDTHH:MM:SS+0000' (e.g., '2025-04-29T14:30:00+0000').

date_to
string or null

The ending date and time when the user ban expires. Must be provided in the following format: 'YYYY-MM-DDTHH:MM:SS+0000' (e.g., '2025-04-29T14:30:00+0000').

Responses
204

OK。

400

無効なリクエスト

401

未認証

403

アクセス拒否

404

見つかりません

422

処理不可能なエンティティー

Request samples
application/json
{
  • "date_from": "string",
  • "date_to": "string",
  • "reason": "string"
}
Response samples
{
  • "error": {
    }
}