Skip to main content
POST
/
saveMyNotificationPreference
Save notification preferences
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/saveMyNotificationPreference \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "group_id": 1,
  "is_email_on": "Y",
  "is_sms_on": "Y",
  "is_inapp_on": "Y"
}
'

Documentation Index

Fetch the complete documentation index at: https://developer.mogl.online/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Use the /api/login endpoint to obtain a token.

Body

application/json
group_id
integer

Notification group ID

Example:

1

is_email_on
enum<string>

Email notification toggle

Available options:
Y,
N
Example:

"Y"

is_sms_on
enum<string>

SMS notification toggle

Available options:
Y,
N
Example:

"Y"

is_inapp_on
enum<string>

In-app notification toggle

Available options:
Y,
N
Example:

"Y"

Response

200

Preferences saved