Skip to main content
POST
/
disableNotificationPreference
Disable notification preference (server-to-server)
curl --request POST \
  --url http://localhost/mogl/mogl-backend/api/disableNotificationPreference \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '{
  "mobiles": []
}'
{
  "status": true,
  "message": "Notification preferences updated.",
  "total_preferences_updated": 1,
  "users_with_preference_changes": 1
}

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

X-API-KEY
string
header
required

Server-to-Server API Key for internal/lambda/cron calls

Body

application/json
mobiles
string[]
required

Array of mobile phone numbers to look up users and disable all their notification preferences

Example:
[]

Response

200 - application/json

Preferences disabled

status
boolean
Example:

true

message
string
Example:

"Notification preferences updated."

total_preferences_updated
integer
Example:

1

users_with_preference_changes
integer
Example:

1