cURL
curl --request POST \ --url https://test-api.afrainity.com/api/v1/school/notices/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "title": "<string>", "description": "<string>", "notice_file": "<string>", "is_deleted": true } '
{ "id": 1, "title": "Mid-Term Break Announcement", "content": "School will be closed for mid-term break from...", "priority": "high", "is_published": true, "created_at": "2024-05-01T10:00:00Z" }
Create and post a new notice/announcement
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Auto-populate created_by from request.user when available.
1 - 255
1