/updateThumbnail: Update Thumbnail

URL:
https://[root]/content/users/[userName]/items/[itemID]/updateThumbnail
Methods:
POST
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):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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:

1
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

1
2
3
4
{
  "success": true,
  "id": "cf3e5c52543c4f81b2daacab18d2e5b9"
}

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close