createItemInFolder

createItemInFolder

Function
createItemInFolder(requestOptionsICreateItemOptions): Promise<ICreateItemResponse>

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

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

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

= Options for the request

Returns 
Promise<ICreateItemResponse>

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