createItem

createItem

Function
createItem(requestOptionsICreateItemOptions): Promise<ICreateItemResponse>

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
import { createItem } from "@esri/arcgis-rest-portal";

createItem({
  item: {
    title: "The Amazing Voyage",
    type: "Web Map"
  },
  authentication
})
Parameters
ParameterTypeNotes
requestOptions
ICreateItemOptions

Options for the request

Returns 
Promise<ICreateItemResponse>

A Promise that creates an item.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.