User APIs/Notification Settings
Update Notification Settings
PUT
/user/notification-settingsBearer token required
ADMIN | USERContent-Type:
application/jsonRequest Example
JSON
{
"overspeed": {
"enabled": true,
"pushEnabled": true,
"emailEnabled": false,
"whatsappEnabled": false,
"threshold": 120
},
"geofenceEntry": {
"enabled": true,
"pushEnabled": true,
"emailEnabled": true
}
}Code Examples
curl -X PUT 'https://<your-domain>:3001/user/notification-settings' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"overspeed": {
"enabled": true,
"pushEnabled": true,
"emailEnabled": false,
"whatsappEnabled": false,
"threshold": 120
},
"geofenceEntry": {
"enabled": true,
"pushEnabled": true,
"emailEnabled": true
}
}'