shareItemWithGroup

shareItemWithGroup

Function
shareItemWithGroup(requestOptionsIGroupSharingOptions): 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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
import { shareItemWithGroup } from '@esri/arcgis-rest-portal';

shareItemWithGroup({
  id: "abc123",
  groupId: "xyz987",
  owner: "some-owner",
  authentication
})
Parameters
ParameterTypeNotes
requestOptions
IGroupSharingOptions

Options for the request.

Returns 
Promise<ISharingResponse>

A Promise that will resolve with the data from the response.

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