updateItemResource

Function

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

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

Parameters

Parameter Type Default Notes
requestOptions Required IItemResourceRequestOptions

Options for the request

Returns

Promise<any> - A Promise that updates an item resource.


Function defined in packages/arcgis-rest-items/src/update.ts:86