Get Announcement by ID

GET/api/announcements/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area
curl -X GET "https://yoursite.com/api/announcements/123" \
  -H "authtoken: YOUR_API_TOKEN"

Success-Response:

{
  "id": "1",
  "title": "Holiday notice",
  "description": "Office closed",
  "start_date": "2024-01-01",
  "end_date": "2024-01-02"
}
MethodGET
Path/api/announcements/{id}
GroupAnnouncements
Sincev1.0.0
Defined inRestApi/Controllers/AnnouncementsController.php