- URL:
- https://<root>/services/<ServiceName>.<ServiceType>/iteminfo/edit
- Methods:
POST- Version Introduced:
- 10.9
Access requirements
Required privileges
The ArcGIS Enterprise Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.
Tokens
This API requires token-based authentication. A token is automatically generated for administrators who sign in to the ArcGIS Enterprise Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.
Those accessing the API directory outside of the HTML interface will need to acquire a session token from the generate operation in the ArcGIS Portal Directory API. For security reasons, all POST requests made to the ArcGIS Enterprise Administrator API must include a token in the request body.
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.example.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"}