- 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 update
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 update
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 update
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
Parameter | Details |
---|---|
(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 |
(Optional) | The URL to the thumbnail image. This parameter is optional, but must be provided if either the Example:
|
(Optional) | A base64 encoded thumbnail image data. This parameter is optional, but must be provided if either the |
(Optional) | An optional name that can be used to save the thumbnail file as. |
| The response format. The default response format is Values: |
JSON Response example
{
"success": true,
"id": "cf3e5c52543c4f81b2daacab18d2e5b9"
}