shareItemToGroups

Function

Share an item to a set of groups

  • shareItemToGroups(itemId: string, groups: string[], requestOptions: IRequestOptions, owner: string) : Promise<ISharingResponse[]>

Parameters

Parameter Type Default Notes
itemId Required string

Iten Id to share to the groups

groups Required string[]

Array of group id's to which the item will be shared

requestOptions Required IRequestOptions
owner Optional string

optional Owner username to determine which endpoint to hit

Available requestOptions

Property Type Notes

Returns

Promise<ISharingResponse[]>

Function defined in common/src/items/share-item-to-groups.ts:14