Categories provide a simple classification layer for events in Eventify. Each category has only aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/astrxnomo/eventify-app/llms.txt
Use this file to discover all available pages before exploring further.
name field, keeping the resource lightweight and easy to manage. Events reference a category via their category_id foreign key, and the category object is included as an eager-loaded relation whenever you fetch event data through the Events API. Use the five endpoints below to list, retrieve, create, update, and delete categories.
The category object
Auto-incremented primary key uniquely identifying the category.
Human-readable display name for the category (e.g.
"Technology", "Music", "Sports").ISO 8601 datetime string set automatically when the record is first created.
ISO 8601 datetime string updated automatically whenever the record is modified.
GET /api/category
Returns an array of all category records in the database. No filtering, pagination, or sorting parameters are supported — the full collection is always returned.[] with status 200 when no categories exist.
GET /api/category/{id}
Returns a single category identified by its integerid.
Path parameter
The unique identifier of the category to retrieve.
| Status | Body |
|---|---|
404 Not Found | {"message": "Categoria no encontrada"} |
POST /api/category
Creates a new category. The only required field isname. Returns the created category object with HTTP 201 Created.
Request body
Display name for the new category. Maximum 255 characters. Must be a non-empty string.
| Status | Body |
|---|---|
422 Unprocessable Entity | Laravel validation error object — e.g. name missing or exceeds 255 characters |
PUT /api/category/{id}
Updates an existing category. Thename field is optional — if omitted, the existing value is preserved. The record is located by id before any update is applied.
Path parameter
The unique identifier of the category to update.
New display name for the category. Maximum 255 characters. If provided, must be a non-empty string.
| Status | Body |
|---|---|
404 Not Found | {"message": "Categoria no encontrada"} |
422 Unprocessable Entity | Laravel validation error object |
DELETE /api/category/{id}
Permanently deletes the category with the given ID. Path parameterThe unique identifier of the category to delete.
| Status | Body |
|---|---|
404 Not Found | {"message": "Categoria no encontrada"} |