Announcements (Comunicados)
Announcements are official communications sent to community residents. They include a title, subtitle, content, and optional image.Get All Announcements
Get Paginated Announcements
page(integer, optional): Page number, default: 1pageSize(integer, optional): Items per page, default: 20
Get Announcements by Community
communityId(guid, optional): Community ID. If null, returns announcements not associated with any specific community.
Get Announcement by ID
id(guid, required): Announcement ID
404 Not Found: Announcement not found
Create Announcement
titulo(string, required): Maximum 200 characterssubtitulo(string, optional): Maximum 300 characterscontenido(string, required): Maximum 4000 charactersfecha(datetime, required): Date of the announcementimagen(string, optional): Maximum 500 characterscommunityId(guid, optional): Community ID
201 Created
Error Responses:
400 Bad Request: Invalid data or validation error
Update Announcement
id(guid, required): Announcement ID
404 Not Found: Announcement not found400 Bad Request: Invalid data or validation error
Delete Announcement
id(guid, required): Announcement ID
204 No Content
Error Responses:
404 Not Found: Announcement not found
Announcement Object Schema
| Field | Type | Description |
|---|---|---|
id | guid | Unique identifier for the announcement |
communityId | guid | Community ID (optional) |
communityName | string | Name of the community (populated from community data) |
titulo | string | Announcement title (max 200 characters) |
subtitulo | string | Announcement subtitle (max 300 characters) |
contenido | string | Full content of the announcement (max 4000 characters) |
fecha | datetime | Date of the announcement |
imagen | string | Image URL (optional, max 500 characters) |
createdAt | string | ISO date string for when the announcement was created |