/[invitationID]/decline: Decline Invitation

URL:
https://[root]/community/users/[userName]/invitations/[invitationID]/decline
Methods:
POST

Example Usage

URL for Decline User Invitation

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

Description

When a group administrator invites a user to their group, it results in a group invitation. The invited user can decline th e invitation using the D ecline I nvitation operation (POST only). The operation deletes the invitation and creates a notification for the user indicating that they declined the invitation. The invited user is not added to the group. Available only to authenticated users.

Request Parameters

ParameterDetails

[Common Parameter]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails

success

Indicates if the operation was successful.

id

The ID of the declined invitation.

username

The username of the user who declined the invitation.

groupId

If the targetType of the invitation is "group", the group ID of the group declined is returned.

JSON Response Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "success": true,
  "username": "<username>",
  "groupId": "<group id>",
  "id": "<invitation id>"
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
{
  "success": true,
  "username": "jsmith",
  "groupId": "2ecb37a8c8fb4051af9c086c25503bb0",
  "id": "G275a108c7d09472f93917d64bbf37d94"
}

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