Add New Announcement

POST/api/announcements

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
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
}
MethodPOST
Path/api/announcements
GroupAnnouncements
Sincev1.0.0
Defined inRestApi/Controllers/AnnouncementsController.php