- URL:
- https://[root]/content/users/[userName]/items/[itemID]/update
- Methods:
POST
Example Usage
The following is a sample ArcGIS Online POST request for the update
operation:
POST /sharing/rest/content/users/serviceOwner/items/2b4c7a08699146f0b270ab609ec4aa91/update HTTP/1.1
Host: org.arcigs.com
Content-Type: multipart/form-data; boundary=----boundary
Content-Length: []
------boundary
Content-Disposition: form-data; name="title"
InlandEmpire_FireWatch
------boundary
Content-Disposition: form-data; name="thumbnail"; filename=""
Content-Type: application/octet-stream
firewatch.png
------boundary
Content-Disposition: form-data; name="thumbnailUrl"
------boundary
Content-Disposition: form-data; name="metadata"; filename=""
Content-Type: application/octet-stream
serviceMetadata.xml
------boundary
Content-Disposition: form-data; name="typeKeywords"
ArcGIS Server, Data, Feature Access, Feature Service, Service, Hosted Service
------boundary
Content-Disposition: form-data; name="description"
This map is used to monitor the state of fires surrounding the Inland Empire area and should be used as a resource for safety officials and residents.
------boundary
Content-Disposition: form-data; name="tags"
feature service, fire, fire watch, Inland Empire
------boundary
Content-Disposition: form-data; name="snippet"
Fires and their containment status within the Inland Empire
------boundary
Content-Disposition: form-data; name="extent"
-117.7976, 33.7443, -116.7834, 34.2351
------boundary
Content-Disposition: form-data; name="spatialReference"
------boundary
Content-Disposition: form-data; name="accessInformation"
------boundary
Content-Disposition: form-data; name="licenseInfo"
------boundary
Content-Disposition: form-data; name="culture"
en-us
------boundary
Content-Disposition: form-data; name="properties"
------boundary
Content-Disposition: form-data; name="url"
https://machine.domain.com/webadaptor/rest/services/Hosted/InlandEmpire_FireWatch/FeatureServer
------boundary
Content-Disposition: form-data; name="serviceUsername"
------boundary
Content-Disposition: form-data; name="servicePassword"
------boundary
Content-Disposition: form-data; name="serviceCredentialsType"
------boundary
Content-Disposition: form-data; name="serviceProxyParams"
------boundary
Content-Disposition: form-data; name="serviceProxyFilter"
------boundary
Content-Disposition: form-data; name="appCategories"
------boundary
Content-Disposition: form-data; name="categories"
------boundary
Content-Disposition: form-data; name="industries"
------boundary
Content-Disposition: form-data; name="languages"
------boundary
Content-Disposition: form-data; name="largeThumbnail"; filename=""
Content-Type: application/octet-stream
MapImage.png
------boundary
Content-Disposition: form-data; name="banner"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
Riverside.png
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
SanBernardino.png
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="listingProperties"
------boundary
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="text"
------boundary
Content-Disposition: form-data; name="dataUrl"
------boundary
Content-Disposition: form-data; name="f"
pjson
------boundary--
The following is a sample ArcGIS Enterprise POST request for the update
operation:
POST /webadaptor/sharing/rest/content/users/serviceOwner/items/2b4c7a08699146f0b270ab609ec4aa91/update HTTP/1.1
HOST: machine.domain.com
Content-Type: multipart/form-data; boundary=----boundary
Content-Length: []
------boundary
Content-Disposition: form-data; name="title"
InlandEmpire_FireWatch
------boundary
Content-Disposition: form-data; name="thumbnail"; filename=""
Content-Type: application/octet-stream
firewatch.png
------boundary
Content-Disposition: form-data; name="thumbnailUrl"
------boundary
Content-Disposition: form-data; name="metadata"; filename=""
Content-Type: application/octet-stream
serviceMetadata.xml
------boundary
Content-Disposition: form-data; name="typeKeywords"
ArcGIS Server, Data, Feature Access, Feature Service, Service, Hosted Service
------boundary
Content-Disposition: form-data; name="description"
This map is used to monitor the state of fires surrounding the Inland Empire area and should be used as a resource for safety officials and residents.
------boundary
Content-Disposition: form-data; name="tags"
feature service, fire, fire watch, Inland Empire
------boundary
Content-Disposition: form-data; name="snippet"
Fires and their containment status within the Inland Empire
------boundary
Content-Disposition: form-data; name="extent"
-117.7976, 33.7443, -116.7834, 34.2351
------boundary
Content-Disposition: form-data; name="spatialReference"
------boundary
Content-Disposition: form-data; name="accessInformation"
------boundary
Content-Disposition: form-data; name="licenseInfo"
------boundary
Content-Disposition: form-data; name="culture"
en-us
------boundary
Content-Disposition: form-data; name="properties"
------boundary
Content-Disposition: form-data; name="url"
https://machine.domain.com/webadaptor/rest/services/Hosted/InlandEmpire_FireWatch/FeatureServer
------boundary
Content-Disposition: form-data; name="serviceUsername"
------boundary
Content-Disposition: form-data; name="servicePassword"
------boundary
Content-Disposition: form-data; name="serviceCredentialsType"
------boundary
Content-Disposition: form-data; name="serviceProxyParams"
------boundary
Content-Disposition: form-data; name="serviceProxyFilter"
------boundary
Content-Disposition: form-data; name="appCategories"
------boundary
Content-Disposition: form-data; name="categories"
------boundary
Content-Disposition: form-data; name="industries"
------boundary
Content-Disposition: form-data; name="languages"
------boundary
Content-Disposition: form-data; name="largeThumbnail"; filename=""
Content-Type: application/octet-stream
MapImage.png
------boundary
Content-Disposition: form-data; name="banner"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
Riverside.png
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
SanBernardino.png
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="screenshot"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="listingProperties"
------boundary
Content-Disposition: form-data; name="file"; filename=""
Content-Type: application/octet-stream
------boundary
Content-Disposition: form-data; name="text"
------boundary
Content-Disposition: form-data; name="dataUrl"
------boundary
Content-Disposition: form-data; name="f"
pjson
------boundary--
Description
The update
operation allows users to update an item's information and file, URL, or text, depending on type. Users can use this operation to update item information such as title, description, tags, and so on, or use it to update an item's file, URL, or text. This call is available to the user and the administrator of the organization. The parameters that should be updated need to be specified in the request. Parameters not specified will not be affected. All parameters for this operation are optional.
Uploading files can be done asynchronously or in multiple parts. See Add Item for more information.
Request parameters
Parameter | Details |
---|---|
| The title of the item. This is the only name that users and applications use for the title, as there is no concept of display names or aliases |
| The path to the thumbnail image to be used for the item. For best results, images that are 600 pixels wide by 400 pixels high or larger Supported retrievable thumbnail widths for item are 200 pixels (default), 400 pixels, 800 pixels, and 2400 pixels, with an aspect ratio of Example:
Item thumbnails can be retrieved at different dimensions by specifying a URL parameter
|
| Enter the URL to the thumbnail image to be used for the item. The recommended image size is 200 pixels wide by 133 pixels high.
|
| The file that stores the metadata information for an item. It's stored in the metadata folder under Example:
|
| Indicates if the organization has metadata enabled. If Values: |
| Metadata style used for organization. Default is Values: |
| Type keywords describe the type and should logically apply to all items of that type. See Items and Item types for a list of predefined Syntax:
Example:
|
| An item description. The size of the description needs to be less than 63 KB. Example:
|
| Tags are words or short phrases that describe the specific item, separated by commas. Syntax:
Example:
|
| Snippet or summary for the item. Limit this brief descriptive text to 2048 characters. Example:
|
| The bounding rectangle of the item. Syntax:
Example:
|
| The coordinate system of the item. Example:
|
| The source credits for the item.
|
| Includes any license information or restrictions.
|
| The item locale (language and country) information. The browser locale will not be taken into consideration if the culture parameter is used to update an item. The format for a culture code is based on a language code and country code, separated by a dash. The Example:
|
| A JSON object that primarily applies to system requirements, terms and conditions, version, supported platforms, and video IDs associated with the application. If the item is of type notebook, you can specify the runtime version of the notebook. Notebook example:
|
| The URL of the item to be updated. |
| Sets the user name on a secure, on-premises map, feature, or image service.
|
| Sets the password on a secure, on-premises map, feature, or image service.
|
| A JSON object that provides rate limiting and referrer checks when accessing secured services. Example:
|
| A JSON object with Examples:
|
| If Values: |
| Allows users to remove the service proxy created for an item ( Values: |
| An array that primarily applies to a list of categories that the application item is applicable to. |
| Clears any fields that are passed in empty ( Values: |
| A JSON array or comma-separated list of categories to add to the item.
|
| An array that primarily applies to industries associated with the application. |
| An array that primarily applies to languages associated with the application. |
| Primarily applies to thumbnails associated with an application. The URL to the thumbnail is used for the application. |
| Primarily applies to the banner associated with an application. The URL to the banner is used for the application. |
| An array that primarily applies to screen shots associated with an application. The URL to the screen shots is used for the application. |
| A JSON object that consists of listing properties when the item is listed in ArcGIS Marketplace. For more information on syntax and properties, see Listing properties. |
| The file to be updated. |
| If Values: |
| The JSON content for the item to be updated. Example:
|
| The URL where the item can be downloaded. The resource will be downloaded and stored as a file type. This is similar to uploading a Please see the implementation details section below which discusses this parameter in further details. |
| If Values: |
| The name of the file being uploaded in multipart mode. This parameter is required if the file is being uploaded in multiple parts and the multipart parameter is set as |
| OAuth App Token1 expiration date (upto one year from the date it was created) in milliseconds. Once this value is set, any previously Item needs to be registered first using Register App to set Example:
Additional usage:
|
| OAuth App Token2 expiration date (upto one year from the date it was created) in milliseconds. Once this value is set, any previously Item needs to be registered first using Register App to set Example:
Additional usage:
|
Implementation details for using the dataUrl parameter
- The referenced
data
parameter has to be an unsecured URL where data can be downloaded.Url - This operation is asynchronous; therefore, the client should check the item's status before using. If the status is completed, the resource is downloaded and the file item is added successfully.
- If the resource supports byte ranges and the content length is larger than 500 KB, Range GET requests are used to download the file in parts.
- Multiple parallel threads download the file parts and perform a file-based merge on them. This is not performed in-memory in order to avoid buffering. If a part can't be downloaded, it attempts once more before failing. All parts need to be downloaded successfully before the item can be created.
Service proxy parameters
ArcGIS Online and ArcGIS Enterprise users can register premium services, as well as services published on their own server, as secured service proxies. If working with secured services, you have the option to save the user name and password credentials directly with the item. Setting the service
provides additional control over how these services are accessed by supplying rate limiting and referrer checks. In other words, by setting these parameters, you provide more control over who can access these services and how much they can use them.
The service
JSON object used to set rate limiting and referrer checks on secured services is described below.
Parameter | Details |
---|---|
| Number of requests that will be allowed within a specified time interval of |
| Integer value indicating the interval time in seconds. Default value is 60. |
| Array of referrers allowed to access service. |
A sample service
JSON object is as follows:
{
"hitsPerInterval":2,
"intervalSeconds":60,
"referrers":["https://server1","https://server2"],
"[https://*arcgis.com] //*.arcgis.com allows any subdomain from arcgis.com to be added
}
Response example
If the rate limit is exceeded, an error will be returned:
{
"error": {
"code": 429,
"messageCode": "CONT_0049",
"message": "Rate limit exceeded. Please try again later.",
"details": []
}
}
Response properties
Property | Details |
---|---|
| Indicates if the operation was successful. |
| The ID of the updated item. |
JSON Response syntax
{
"success": true | false,
"id": "<item id>"
}
JSON Response example
{
"success": true,
"id": "b512083cd1b64e2da1d3f66dbb135956"
}