addItemResource

Function

import { addItemResource } from '@esri/arcgis-rest-items';
//
addItemResource({
  id: '3ef',
  resource: file,
  name: 'bigkahuna.jpg',
  authentication
})
  .then(response)

Add a resource associated with an item. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
requestOptions Required IItemResourceAddRequestOptions

Options for the request

Returns

Promise<IItemResourceResponse> - A Promise to add item resources.


Function defined in packages/arcgis-rest-items/src/add.ts:147