Update an Announcement

PUT/api/announcements/{id}

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
id Number Announcement unique ID
title string optional Optional Title to update
description string optional Optional Description to update
start_date string optional Optional Start date to update
end_date string optional Optional End date to update
curl -X PUT "https://yoursite.com/api/announcements/123" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "field": "value" }'

Success-Response:

HTTP/1.1 200 OK
{
  "status": 200,
  "messages": {"success": "Announcement update success"}
}
MethodPUT
Path/api/announcements/{id}
GroupAnnouncements
Sincev1.0.0
Defined inRestApi/Controllers/AnnouncementsController.php