createFolder

Function

import { createFolder } from '@esri/arcgis-rest-items';
//
createFolder({
  title: 'Map Collection',
  authentication: userSession
})
  .then(response)

Create a folder. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IAddFolderRequestOptions

Options for the request

Returns

Promise<IAddFolderResponse> - A Promise that resolves with folder details once the folder has been created


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