Xsolla-logoXsolla Developers
o
A Cuenta del editor

Prohibir a un usuarioServer-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 del proyecto de Login procedente de Cuenta del editor.

user_id
required
string <uuid>

ID de usuario. Puede encontrarlo en Cuenta del editor > 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

Bad Request (Solicitud errónea)

401

Unauthorized (No autorizado)

403

Forbidden (Prohibido)

404

Not Found (No encontrado)

422

Unprocessable Entity (Entidad no procesable)

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