Add New Announcement
POST/api/announcements
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| title | string | Mandatory Announcement title |
| description | string | Mandatory Announcement description |
| start_date | string | Mandatory Start date (Y-m-d) |
| end_date | string | Mandatory End date (Y-m-d) |
| created_by | number | optional Optional RISE user ID. Default: 1. Use for proper attribution. |
curl -X POST "https://yoursite.com/api/announcements" \
-H "authtoken: YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "title": "...", "description": "...", "start_date": "...", "end_date": "..." }' Success-Response:
HTTP/1.1 201 Created
{
"status": 200,
"messages": {"success": "Announcement add success"},
"id": 1
}