Add Notification
POST/api/notifications
Headers
| Field | Type | Description |
|---|---|---|
| authtoken | String | Authentication token, generated from admin area |
Parameters
| Field | Type | Description |
|---|---|---|
| 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
}