updateItemResource

updateItemResource

updateItemResource(requestOptionsIItemResourceOptions): Promise<IItemResourceResponse>

Update an info file associated with an item. See the REST Documentation for more information.

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

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
ParameterTypeNotes
requestOptions
IItemResourceOptions

Options for the request

Returns 
Promise<IItemResourceResponse>

A Promise that updates an item resource.

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