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
Request
- Base URL: https://api.volcano.dev
- URL: https://api.volcano.dev/projects/{id}/auth/users/{userId}/ban
- Auth: one of:
- HTTP bearer
- HTTP bearer
Path parameters
Project ID
Request body
Example request
{
"banned_until": "2026-12-31T23:59:59Z"
}Response
User banned successfully
Example response
{
"message": "User banned until 2026-12-31T23:59:59Z"
}Changes
- ○
the endpoint scheme security
ProjectAccessTokenwas added to the API - ○
added the non-success response with the status
- ○
- ▲
added the new path request parameter
id - ▲
the response's body type changed from no type to
objectfor status - ▲
the response's body type changed from no type to
objectfor status - ○
added the optional property
to the response with the status - ○
added the optional property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status - ○
added the required property
to the response with the status
- ▲