curl --request POST \ --url https://backend.testeswaffle.org/referrals/ban \ --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...' \ --header 'Content-Type: application/json' \ --data '{ "email": "[email protected]", "reason": "Múltiplas tentativas de fraude detectadas" }'
{ "success": true, "data": { "user_email": "[email protected]", "action": "banned", "banned_at": "2024-01-15T16:45:00Z", "reason": "Múltiplas tentativas de fraude detectadas" } }
Alterna o status de banimento de um usuário. Requer autenticação JWT.
Show properties
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Email do usuário
Motivo do banimento
Operação realizada com sucesso
Show child attributes