Overview

The Update User Notification Settings API updates your notifications settings.

You can use the GET https://api.armor.com/me to find your user ID (id). 
You can use the Get User Notification Settings API to find your user ID (userId), account ID (accountId), and notification ID (notificationTypeId). 

Sample request

POST https://api.armor.com/users/notifications

REQUEST:
{
 "userId": 2903,
 "isSelfUpdate": true,
 "notificationPreferences": [
   {
     "userId": 2903,
     "accountId": 2,
     "notificationTypeId": "2",
     "alert": true,
     "sms": true,
     "email": true
   }
 ]
}

Input

API Call / URLMethod / Type
/users/notificationsPOST


ParameterDescriptionFormatRequired or optionalExample
userIdThe ID of the userIntegerRequired2903
isSelfUpdateIf you are updating your own notification preferencesBooleanRequiredtrue
NotificationPreferencesArray of notification preferencesUserNotificationPreferences[]Required[ ]



Sample return

StatusResponse
200
true
400
"Invalid Request"