Universities are the top-level organizational entities in UniEvents. Every faculty (tenant), its events, spaces, and staff ultimately belong to a university. Before you can create a faculty or assign tenant administrators, you need at least one university in the system. All university management is performed from the superadmin portal atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Edfermachado/proyectoSistemas/llms.txt
Use this file to discover all available pages before exploring further.
/admin/universities.
What Is a University?
A university is the root of the multi-tenant hierarchy. It groups one or more faculty tenants, each of which manages its own spaces, events, and users. The database schema for a university is:| Field | Details |
|---|---|
name | Human-readable institution name. Must be unique across the platform. |
slug | URL-safe identifier auto-generated from the name via generateUniqueSlug. Never set manually. |
description | Optional text description of the institution. |
logoUrl | Optional URL to the university’s logo image (stored externally or via Supabase Storage). |
Creating a University
Open the Universities list
Navigate to
/admin/universities. If no universities exist yet, an empty state is shown with an Add University button.Click New University
Click the Nueva Universidad button in the top-right corner. This navigates to
/admin/universities/new.Fill in the form
Complete the required and optional fields:
- Name (required, unique) — the official institution name.
- Description (optional) — a short summary shown on the public university page.
- Logo URL (optional) — a direct link to a logo image.
API — Create a University
201 Created:
The
slug is derived automatically from the name using the shared generateUniqueSlug helper. If the slug already exists, a numeric suffix is appended (e.g., universidad-central-2). You should never pass slug in the request body.Editing and Deleting a University
Editing
Navigate to/admin/universities/[id]/edit. Update any combination of name, description, or logoUrl and save the form. The PUT endpoint re-generates the slug if the name changes.
200 OK — returns the full updated university object.
Deleting
Click the delete icon (trash) next to any university row on/admin/universities. This calls:
Viewing University Details
Opening/admin/universities/[id] shows the university record along with the list of faculty tenants linked to it via the universityId foreign key. From here you can navigate to individual tenant records.
All API Endpoints
GET /api/universities returns an array ordered by createdAt descending: