declineInvitation
FunctiondeclineInvitation(requestOptions: IGetUserInvitationOptions): Promise<{ groupId: string; id: string; success: boolean; username: string }>Decline an invitation. See the REST Documentation for more information.
import { declineInvitation } from '@esri/arcgis-rest-portal';
// username is inferred from ArcGISIdentityManager
declineInvitation({
  invitationId: "3ef",
  authentication
})
  .then(response)Parameters
| Parameter | Type | Notes | 
|---|---|---|
request | IGetUserInvitationOptions | Options for the request  | 
Returns
Promise<{ groupId: string; id: string; success: boolean; username: string }>A Promise that will resolve with the success/failure status of the request