- URL:
- https://[root]/content/users/[userName]/items/[itemID]/proxies/[proxyID]/update
- Methods:
POST
Example usage
URL for Update Proxy
https://www.arcgis.com/sharing/rest/content/users/jsmith/items/d141c90171114982991d2f1ffc99f8aa/proxies/bxf1vC9DB7G0CFkP/update
Description
The Update Proxy operation (POST only) allows you to update an ArcGIS Online-hosted proxy service that has been set on an item. The operation is only available on registered app items with Registered App
and App Proxy
type keywords.
The operation can only be made by the item owner and the organization administrator.
Request parameters
Parameter | Details |
---|---|
| For a complete listing, see common parameters. |
| A JSON object representing the hosted proxy information to update, including source service URL, proxy URL, ID, and optionally rate Example:
|
Response properties
Property | Details |
---|---|
| Indicates whether the operation was successful. |
| Proxy ID. |
| Item ID. |
| A JSON array consisting of the updated proxy information, including source service URL, proxy URL, proxy ID, and optionally rate Example:
|
JSON Response syntax
{
"success": true,
"proxyId": "<proxy ID>",
"itemId": "<item ID>",
"appProxies": [
{
"sourceUrl": "<service url to proxy>",
"proxyUrl": "<proxy service url>",
"hitsPerInterval": <num of requests allowed per time interval>,
"intervalSeconds": <time interval in seconds>,
"proxyId": "<proxy ID>"
}
]
}
JSON Response example
{
"success": true,
"proxyId": "bxf1vC9DB7G0CFkP",
"itemId": "d141c90171114982991d2f1ffc99f8aa",
"appProxies": [
{
"sourceUrl": "https://route.arcgis.com/arcgis/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",
"proxyUrl": "https://utility.arcgis.com/sharing/appservices/bxf1vC9DB7G0CFkP/rest/services/World/ClosestFacility/NAServer/ClosestFacility_World",
"hitsPerInterval": 200,
"intervalSeconds": 60,
"proxyId": "bxf1vC9DB7G0CFkP"
}
]
}
or
{
"error": {
"code": 400,
"message": "Unable to update proxy.",
"details": ["ProxyId is Invalid"]
}
}