Announcements
Create Announcement
Create a new announcement (Admin only)
POST
Overview
This endpoint allows administrators to create new announcements. Announcements can be created as active (published immediately) or inactive (draft mode).This endpoint requires admin authentication. Only users with admin privileges can create announcements.
Request Body
The title of the announcement. This field is mandatory.
The content/body of the announcement. This field is mandatory.
Publication date in ISO 8601 format. If not provided, defaults to the current timestamp.
Whether the announcement should be active (published). Defaults to
true if not specified.URL to associated media such as images or videos.
Response
Success message confirming the announcement creation
The newly created announcement object
Unique identifier for the announcement
Title of the announcement
Content/body of the announcement
Publication date in ISO 8601 format
Whether the announcement is active
URL to associated media
Creation timestamp in ISO 8601 format
Last update timestamp in ISO 8601 format
Related Endpoints
Update Announcement
Update an existing announcement
Deactivate Announcement
Deactivate an announcement to hide it from users