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

확인.

400

잘못된 요청

401

인증되지 않음

403

금지됨

404

찾을 수 없음

422

처리할 수 없는 엔터티

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