setItemAccess
FunctionsetItemAccess(requestOptions: ISetAccessOptions): Promise<ISharingResponse>
Change who is able to access an item.
import { setItemAccess } from "@esri/arcgis-rest-portal";
setItemAccess({
id: "abc123",
access: "public", // 'org' || 'private'
authentication: session
})
Parameters
Parameter | Type | Notes |
---|---|---|
request | ISetAccessOptions | Options for the request. |
Returns
Promise<ISharingResponse>
A Promise that will resolve with the data from the response.