Request body
UUID of the user account to block or unblock.
Set to
true to block the account or false to unblock it.Learn more about Mintlify
Enter your email to receive updates about new features and product releases.
Set or clear the blocked status on a user account. Requires administrator privileges.
true to block the account or false to unblock it.curl --request PATCH \
--url 'https://yourdomain.com/api/perfil/bloquear' \
--cookie 'sb-access-token=<admin-session-cookie>' \
--header 'Content-Type: application/json' \
--data '{
"targetUserId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"bloqueado": true
}'
{
"message": "Operación exitosa"
}
{
"error": "<database error message>"
}
{
"error": "No autorizado"
}
{
"error": "No tienes permisos de administrador"
}
{
"error": "Error interno"
}