Create group
POST /api/v1/auth/groups
Creates the group in Keycloak first, then persists locally with the returned keycloak_group_id. On Keycloak failure the local record is never written — no orphaned DB rows.
Authorizations
Enter your JWT token in the format: Bearer
Body
Serializer for Group — a Keycloak group scoped to a department.
On write, supply department_id. On read, the full department object
is returned. The keycloak_id field is read-only — set by the server
at creation time and must never be changed by the client.
Response
Serializer for Group — a Keycloak group scoped to a department.
On write, supply department_id. On read, the full department object
is returned. The keycloak_id field is read-only — set by the server
at creation time and must never be changed by the client.
Name of the group, e.g. 'Commercial Operations'. Normalized to title case with single spaces on write.
Serializer for Department.
Keycloak realm this group belongs to
