arcgis-rest-js icon indicating copy to clipboard operation
arcgis-rest-js copied to clipboard

Update Item doesn't support uploading thumbnail images

Open ssylvia opened this issue 2 years ago • 0 comments

According to docs, you can add an image file to the thumbnail param that should be uploaded as a thumbnail image.

This does not work:

updateItem({
  authentication: userSession,
  item: {
    ...otherItemDetails,
    thumbnail: MyBlob
  }
}),

However, if I use the standard request, it works:

request('https://www.arcgis.com/sharing/rest/content/users/jsmith/items/2b4c7a08699146f0b270ab609ec4aa91/update',{
  authentication: userSession,
  params: {
    ...otherItemDetails,
    thumbnail: MyBlob
  }
})

ssylvia avatar Oct 27 '21 21:10 ssylvia