• import { createFolder } from "@esri/arcgis-rest-portal";
    //
    createFolder({
    title: 'Map Collection',
    authentication: userSession
    })
    .then(response)

    Create a folder. See the REST Documentation for more information.

    Parameters

    • requestOptions: ICreateFolderOptions

      Options for the request

    Returns Promise<IAddFolderResponse>

    A Promise that resolves with folder details once the folder has been created