Auth Admin
Ban a user
Changed onBans a user temporarily or permanently. Banned users cannot sign in and all their active sessions are immediately revoked. Omitting banned_until clears any previous expiry. Deleted accounts cannot be banned.
- Omit banned_until for a permanent ban
- Provide banned_until ISO timestamp for a temporary ban
post/projects/{id}/auth/users/{userId}/ban
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
id, string uuid required
Project ID
userId, string uuid required
Request body
object required
banned_until, string date-time
When the ban expires (omit for permanent ban)
Example request
{
"banned_until": "2026-12-31T23:59:59Z"
}Response
User banned successfully
Ban User Response required
Response when banning a user
message, string required
user_id, string uuid required
email, string email required
status, 'banned' required
banned_until, string date-time nullable
When the ban expires (null for permanent ban)
Example response
{
"message": "User banned until 2026-12-31T23:59:59Z"
}Changes
- info
the endpoint scheme security
ProjectAccessTokenwas added to the API - info
added the non-success response with the status
- info
- breaking
added the new path request parameter
id
9 more changes in this revision
- breaking