createItem
FunctioncreateItem(requestOptions: ICreateItemOptions): Promise<ICreateItemResponse>
Create an Item in the user's root folder. See the REST Documentation for more information.
import { createItem } from "@esri/arcgis-rest-portal";
createItem({
item: {
title: "The Amazing Voyage",
type: "Web Map"
},
authentication
})
Parameters
Parameter | Type | Notes |
---|---|---|
request | ICreateItemOptions | Options for the request |
Returns
Promise<ICreateItemResponse>
A Promise that creates an item.