shareItemWithGroup
FunctionshareItemWithGroup(requestOptions: IGroupSharingOptions): Promise<ISharingResponse>Share an item with a group, either as an item owner, group admin or organization admin.
Sharing the item as an Admin will use the /content/users/:ownername/items/:itemid/share end-point
import { shareItemWithGroup } from '@esri/arcgis-rest-portal';
shareItemWithGroup({
  id: "abc123",
  groupId: "xyz987",
  owner: "some-owner",
  authentication
})Parameters
| Parameter | Type | Notes | 
|---|---|---|
| request | IGroupSharingOptions | Options for the request. | 
Returns
Promise<ISharingResponse>A Promise that will resolve with the data from the response.