invitations: User Invitations

URL:
https://[root]/community/users/[userName]/invitations
Methods:
GET

Example Usage

URL for User Invitations

Use dark colors for code blocksCopy
1
https://www.arcgis.com/sharing/rest/community/users/jsmith/invitations

Description

Shows the invitations sent to the authenticated user.

Request Parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails

userInvitations

A JSON array of invitation objects. For details, see the response properties for User 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
17
18
19
{
  "userInvitations": [{
  "id": "<invitation id>",
  "targetType": "<group>",
  "targetId": "<group  id>",
  "received": date received shown in UNIX time,
  "accepted": true | false,
  "mustApprove": true | false,
  "email": <invitee username>,
  "role": "group_member | group_admin",
  "type": "email | user",
  "dateAccepted": <date invite accepted>,
  "expiration": <expiration date> shown in UNIX time,
  "created": <date created> shown in UNIX time,
  "username": "<recipient username>",
  "fromUsername": {"username": "<group owner username>"},
  "groupId": "<group id>"
}]
}

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
{
  "userInvitations": [{
  "id": "G275a108c7d09472f93917d64bbf37d94",
  "targetType": "group",
  "targetId": "6cd148dffe0f44c69aa39a787a2357db",
  "received":1330126012000,
  "accepted": false,
  "mustApprove": false,
  "email": jsmith@esri.com,
  "role": "group_member",
  "type": "user",
  "dateAccepted": -1,
  "expiration": 1331335612000,
  "created": 1330126012000,
  "username": "jsmith",
  "fromUsername": {"username": "mjohnson"},
  "groupId": "981213ddd719410ab5ef973afd56263a"
}]
}

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