- URL:
- https://<root>/services/<ServiceName>.<ServiceType>/iteminfo/edit
- Methods:
POST
- Required Capability:
- Access allowed with either the "Update", "Delete", or "Security and infrastructure" privileges, or the Publisher role
- Version Introduced:
- 10.9
Description
The edit
operation modifies the item information for an individual service and allows the addition of an optional thumbnail image.
Request parameters
Parameter | Details |
---|---|
(Required) | A JSON object representing the item information for the service |
(Optional) | An optional thumbnail image to be uploaded to the server. |
| The response format. The default format is Values: |
Example usage
The following is a sample POST request for the edit
operation:
POST /context/admin/services/Hosted/DamageAssessmentStatePlane.FeatureServer/iteminfo/edit HTTP/1.1
Host: organization.domain.com
Content-Type: multipart/form-data; boundary=----boundary
------boundary
Content-Disposition: form-data; name="serviceItemInfo"
{
"description": "This map is used with ArcGIS Mobile to collect structural damage assessment. It can be used to author the mobile map cache and mobile map service used in the Damage Assessment Mobile Application.",
"summary": "This map is used with ArcGIS Mobile to collect structural damage assessment. It can be used to author the mobile map cache and mobile map service used in the Damage Assessment Mobile Application.",
"tags": ["Emergency Management,Damage Assessment,Public Safety"]
}
------boundary
Content-Disposition: form-data; name="thumbnail"; filename=""
Content-Type: application/octet-stream
thumbnail.png
------boundary
Content-Disposition: form-data; name="f"
pjson
------boundary
Content-Disposition: form-data; name="token"
pTF08-CHWCTee06taPxsNFRbqe6oAmq-WsyD-cOITvUXypJemoP8I_8rPZltViyfP46PmKhkicCgt8dMK5m-4H02kpkIGnUG5yxIgOfkoQRyZ9y3bMhVnkGnh24YU-KDKTI6QQI0kDASxSPWl_ntPevBHbqhORrxLgauHDHoRBCm48fEswZTOyZwQdozczzYbS3wKKecRT66v9ssoRmtmiYLREY4B_nkRfTEZoQSwr6w7LzqLAO5k3wwB3orC1LR
------boundary--
JSON Response example
{"status": "success"}