v1

latestOpenAPI 3.1.02026-07-177545150.1 KB
Server Management

Delete Group Api

Delete a scope group via JWT authentication (External API).

This endpoint provides the same functionality as POST /api/internal/delete-group but uses modern JWT Bearer token authentication.

Authentication: JWT Bearer token (via nginx X-User header) Authorization: Requires valid JWT token from auth system

Request body (form data):

  • group_name (required): Name of the group to delete
  • delete_from_keycloak (optional): Whether to delete from Keycloak (default: true)
  • force (optional): Force deletion of system groups (default: false)

Response: Returns confirmation of group deletion.

Example:

curl -X POST https://registry.example.com/api/servers/groups/delete \
  -H "Authorization: Bearer $JWT_TOKEN" \
  -F "group_name=old-team" \
  -F "delete_from_keycloak=true" \
  -F "force=false"
post/api/servers/groups/delete

Response

Successful Response

{"stackTrail":"paths:/api/servers/groups/delete:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}