Add Notification

POST/api/notifications

Headers

FieldTypeDescription
authtoken String Authentication token, generated from admin area

Parameters

FieldTypeDescription
user_id number Mandatory User ID
event string Mandatory Event name
title string optional Optional Notification title
curl -X POST "https://yoursite.com/api/notifications" \
  -H "authtoken: YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "user_id": "...", "event": "..." }'

Success-Response:

HTTP/1.1 201 Created
{
  "status": 200,
  "messages": {"success": "Notification add success"},
  "id": 1
}
MethodPOST
Path/api/notifications
GroupNotifications
Sincev1.0.0
Defined inRestApi/Controllers/NotificationsController.php