• import { createItem } from "@esri/arcgis-rest-portal";
    //
    createItem({
    item: {
    title: "The Amazing Voyage",
    type: "Web Map"
    },
    authentication
    })

    Create an Item in the user's root folder. See the REST Documentation for more information.

    Parameters

    Returns Promise<ICreateItemResponse>

    A Promise that creates an item.