setItemAccess

Function

import { setItemAccess } from '@esri/arcgis-rest-sharing';
//
setItemAccess({
  id: "abc123",
  access: "public", // 'org' || 'private'
  authentication: session
})

Change who is able to access an item.

Parameters

Parameter Type Default Notes
requestOptions Required ISetAccessRequestOptions

Options for the request.

Returns

Promise<ISharingResponse> - A Promise that will resolve with the data from the response.


Function defined in packages/arcgis-rest-sharing/src/access.ts:36