createItemInFolder

Function

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

Create an item in a folder. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IItemAddRequestOptions

= Options for the request

Returns

Promise<IItemAddResponse>


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