leaveGroup
FunctionleaveGroup(requestOptions: IUserGroupOptions): Promise<{ groupId: string; success: boolean }>Make a request as the authenticated user to leave a Group. See the REST Documentation for more information.
import { leaveGroup } from '@esri/arcgis-rest-portal';
leaveGroup({
  id: groupId,
  authentication
})
  .then(response)Parameters
| Parameter | Type | Notes | 
|---|---|---|
| request | IUserGroupOptions | Options for the request | 
Returns
Promise<{ groupId: string; success: boolean }>A Promise that will resolve with the success/failure status of the request and the groupId.