notifications

URL:
https://[root]/community/users/[userName]/notifications
Methods:
GET
Child Resources:
Notification

Example Usage

URL for Notifications

Use dark colors for code blocksCopy
1
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 a rray of notification objects. See Notification for the properties of an invitation.

JSON Response Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
  "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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
  "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"
    }
  }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.