Skip to main content
POST
/
api
/
system
/
notifications
Create or dismiss a system notification
curl --request POST \
  --url https://api.propops.app/api/system/notifications \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": "create",
  "csrf_token": "abc123def456",
  "title": "Scheduled Maintenance",
  "body": "The platform will be offline for maintenance on 01/07/2024 from 02:00–04:00 UTC.",
  "type": "info",
  "notification_id": 1
}
'
{
  "success": true,
  "message": "Operation completed successfully"
}

Authorizations

Authorization
string
header
required

All API requests must include a valid Bearer token in the Authorization header. Tokens are 64-character SHA-256 session hashes issued by the PropOps authentication system.

Example:

Authorization: Bearer a1b2c3d4e5f6...

Body

application/json
action
enum<string>
required
Available options:
create,
dismiss,
delete
csrf_token
string
required
Example:

"abc123def456"

title
string
Example:

"Scheduled Maintenance"

body
string
Example:

"The platform will be offline for maintenance on 01/07/2024 from 02:00–04:00 UTC."

type
enum<string>
Available options:
info,
warning,
critical
Example:

"info"

notification_id
integer
Example:

1

Response

Notification actioned

success
boolean
Example:

true

message
string
Example:

"Operation completed successfully"