Xsolla-logoXsolla Developers
ou
Conta de Distribuidor

Banir usuárioServer-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 do projeto Login da Conta de Distribuidor.

user_id
required
string <uuid>

ID de usuário. Você pode encontrá-lo na Conta de Distribuidor > your Login project > Users.

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

Pedido incorreto

401

Desautorizado

403

Proibido

404

Não encontrado

422

Entidade não processável

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