createItem

Function

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

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

Parameters

Parameter Type Default Notes
requestOptions Required IItemAddRequestOptions

Options for the request

Returns

Promise<IItemAddResponse> - A Promise that creates an item.


Function defined in packages/arcgis-rest-items/src/create.ts:115