Skip To Content

/updateThumbnail: Update Thumbnail

  • URL:https://[root]/content/users/[userName]/items/[itemID]/updateThumbnail(POST only)
  • Version Introduced:ArcGIS Enterprise 10.5 | ArcGIS Online April 2016

Example usage

The following is a sample ArcGIS Online POST request for the updateThumbnail operation, demonstrating uploading an image (thumbnail.png):


POST /sharing/rest/content/users/administrator/items/cf3e5c52543c4f81b2daacab18d2e5b9/updateThumbnail HTTP/1.1
Host: org.arcgis.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryNM88UJMCLaPfYiob

------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream

thumbnail.png
------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="url"


------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="data"


------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="filename"


------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="f"

pjson
------WebKitFormBoundaryNM88UJMCLaPfYiob--

The following is a sample ArcGIS Enterprise POST request for the updateThumbnail operation, demonstrating uploading an image (thumbnail.png):


POST /webadaptor/sharing/rest/content/users/administrator/items/cf3e5c52543c4f81b2daacab18d2e5b9/updateThumbnail HTTP/1.1
Host: machine.domain.com
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryNM88UJMCLaPfYiob

------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream

thumbnail.png
------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="url"


------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="data"


------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="filename"


------WebKitFormBoundaryNM88UJMCLaPfYiob
Content-Disposition: form-data; name="f"

html
------WebKitFormBoundaryNM88UJMCLaPfYiob--

Description

The updateThumbnail operation updates the thumbnail of any ArcGIS item in your organization. The updated thumbnail can be provided in a variety of formats, as either a file to be uploaded as part of a multipart request, a direct URL to the thumbnail file, or as a Base64 encoded image.

Request parameters

ParameterDetails
file

(Optional)

The thumbnail image file to be uploaded. If you choose to upload a file, rather than provide a URL to the thumbnail or an encoded version of the image, this request must be a multipart request. This operation supports PNG, JPG, and GIF file formats. This parameter is optional, but must be provided if either the url or data parameter is not submitted.

url

(Optional)

The URL to the thumbnail image. This parameter is optional, but must be provided if either the file or data parameter is not submitted.

Example

https://server/arcgis/subfolder/thumbnail.jpg
data

(Optional)

A base64 encoded thumbnail image data. This parameter is optional, but must be provided if either the file or url parameter is not submitted.

filename

(Optional)

An optional name that can be used to save the thumbnail file as.

f

The response format. The default response format is html.

Values: html | json | pjson

JSON Response example


{
  "success": true,
  "id": "cf3e5c52543c4f81b2daacab18d2e5b9"
}