Skip to main content
POST
/
api
/
v1
/
school
/
notices
Create notice
curl --request POST \
  --url https://api.example.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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

Auto-populate created_by from request.user when available.

title
string
required
Required string length: 1 - 255
description
string
required
Minimum string length: 1
notice_file
file | null
is_deleted
boolean

Response

{key}
any