Skip To Content

notifications

  • URL:https://[root]/community/users/[userName]/notifications

Example Usage

URL for Notifications

https://www.arcgis.com/sharing/rest/community/users/jsmith/notifications

Description

The list of notifications available for the given user. These can have different types as described in the documentation for the Notification resource.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails
notifications

JSON array of notification objects. See Notification for the properties of an invitation.

JSON Response Syntax


            {
  "notifications": [
  {
    "id": "<notification id>",
    "type": "group join | group_applicaton_accepted | group_application_declined | user_invite | 
		user_invitation_accepted | user_invitation_declined",
    "target": "<recipient username>",
    "targetType": "user",
    "received": date received shown in UNIX time,
    "data": {
      "groupId": "<group id>",
      "groupTitle": "<group title>"
   }
  }]}

JSON Response Example


            {
  "notifications": [
  {
    "id": "9315e22b2f99423f8d06228d04719efe",
    "type": "group_application_declined",
    "target": "jsmith",
    "targetType": "user",
    "received": 1230072232000,
    "data": {
      "groupId": "cc5f73ab367544d6b954d82cc9c6dab7",
      "groupTitle": "Street Maps"
    }
  },
  {
    "id": "4ed1067d2abe4ce7a97bcd0ed088792a",
    "type": "group_join",
    "target": "swilson",
    "targetType": "user",
    "received": 1230069187000,
    "data": {
      "groupId": "cc5f73ab367544d6b954d82cc9c6dab7",
      "groupTitle": "Street Maps"
    }
  }
  ]
}