Announcements

Management of system announcements.

Available Endpoints

Method Path Description
GET /api/announcements List announcements
GET /api/announcements/{id} Announcement details
POST /api/announcements Create new announcement
DELETE /api/announcements/{id} Delete announcement
POST /api/announcements/{id}/read Mark as read

Example List Request

curl -X GET "https://example.com/api/announcements" \
  -H "Authorization: Bearer {token}"

Success Response (200)

{
  "records": [
    {
      "id": 1,
      "title": "System Update",
      "description": "The system will be updated on Mordad 15",
      "created_at": "1403-05-10",
      "read": false
    }
  ],
  "meta": {
    "total": 5,
    "current_page": 1,
    "per_page": 20
  }
}

Errors

Code Description
401 Invalid token
Type to search...