The Communities API provides full lifecycle management forDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/GuillermoNavarro/Proyecto_comunidades/llms.txt
Use this file to discover all available pages before exploring further.
Comunidad resources — the top-level organisational unit of the platform. Every user, fee, and receipt belongs to exactly one community. Most write operations are restricted to the SUPER_ADMIN role (platform managers), while read access to an individual community is available to community-level ADMIN users as well.
All endpoints require a valid JWT Bearer token in the Authorization header.
GET /api/comunidades
Returns every community registered on the platform.Required role:
SUPER_ADMIN200 OK — array of Comunidad objects.
Unique identifier of the community (auto-generated).
Display name of the community (e.g.
"Comunidad Los Pinos").Street address of the community building.
City where the community is located.
Postal code of the community.
Example response
| Status | Meaning |
|---|---|
200 | OK — list returned (may be empty). |
403 | Forbidden — caller does not have SUPER_ADMIN role. |
GET /api/comunidades/activos
Returns a summary of every community together with its count of currently active users (i.e. users whoseestado is true).
Required role:
SUPER_ADMIN200 OK — array of ActivoComunidad projection objects.
Unique identifier of the community.
Display name of the community.
Postal code of the community.
Number of users with
estado = true (active residents) in this community.Example response
| Status | Meaning |
|---|---|
200 | OK — list returned (may be empty). |
403 | Forbidden — caller does not have SUPER_ADMIN role. |
GET /api/comunidades/{id}
Retrieves a single community by its numericid.
Required role:
ADMIN or SUPER_ADMINPath parameters
The unique identifier of the community to retrieve.
200 OK — a single Comunidad object.
Unique identifier of the community.
Display name of the community.
Street address of the community building.
City where the community is located.
Postal code of the community.
Example response
| Status | Meaning |
|---|---|
200 | OK — community found and returned. |
404 | Not Found — no community exists with the given id. |
403 | Forbidden — caller does not have the required role. |
POST /api/comunidades
Creates a new community. Theid field is auto-generated and should not be included in the request body.
Required role:
SUPER_ADMINRequest body
Display name of the community.
Street address of the community building.
City where the community is located.
Postal / ZIP code of the community.
200 OK — the newly created Comunidad object including its generated id.
Example response
| Status | Meaning |
|---|---|
200 | OK — community created successfully. |
403 | Forbidden — caller does not have SUPER_ADMIN role. |
PUT /api/comunidades/{id}
Replaces all editable fields on an existing community with the values provided in the request body.Required role:
SUPER_ADMINPath parameters
The unique identifier of the community to update.
Request body
New display name of the community.
New street address.
New city.
New postal code.
200 OK — the updated Comunidad object.
Example response
| Status | Meaning |
|---|---|
200 | OK — community updated and returned. |
404 | Not Found — no community exists with the given id. Returns the string "Comunidad no encontrada.". |
403 | Forbidden — caller does not have SUPER_ADMIN role. |