addItemData

addItemData

Function
addItemData(requestOptionsIAddItemDataOptions): Promise<IUpdateItemResponse>

Send a file or blob to an item to be stored as the /data resource. See the REST Documentation for more information.

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

addItemData({
  id: '3ef',
  data: file,
  authentication
})
  .then(response)
Parameters
ParameterTypeNotes
requestOptions
IAddItemDataOptions

Options for the request

Returns 
Promise<IUpdateItemResponse>

A Promise that will resolve with an object reporting success/failure and echoing the item id.

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