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

    Change who is able to access an item.

    Parameters

    Returns Promise<ISharingResponse>

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