- URL:https://<properties-url>/update(POST only)
- Required Capability:Default administrator role | Security and infrastructure privilege | Organization website privilege
- Version Introduced:10.3
Description
This operation updates one or more System Properties. When using this operation, you must pass in all of the previously modified system properties. For example, first obtain all of the modified system properties, then update or add properties in this list. When you pass the properties to the operation, only the properties that have been updated or added to the JSON object will be modified in the portal.
Request parameters
Parameter | Details |
---|---|
properties | The JSON object containing all the properties. Example
|
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for update that demonstrates how to update the privatePortalURL property, formatted for readability. First, list all other previously modified properties and then update the privatePortalURL property:
POST /webadaptor/portaladmin/system/properties/update HTTP/1.1
Host: machine.domain.com
Content-Type:
Content-Length: []
properties={
"nonProxyHosts": "localhost|machine012.domain.com|*.domain.com",
"privatePortalURL": "https://loadbalancer:7443/arcgis"
}&f=json
Below is a sample POST request for update that demonstrates how to add new properties, formatted for readability. First, list all other previously modified properties and then add the new properties:
POST /webadaptor/portaladmin/system/properties/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
properties={
"nonProxyHosts": "localhost|machine012.domain.com|*.domain.com",
"privatePortalURL": "https://loadbalancer:7443/arcgis",
"httpProxyHost": "forwardproxy.domain.com",
"httpsProxyHost": "forwardproxy.domain.com",
"httpProxyPort": 80,
"httpsProxyPort": 443
}&f=json
JSON Response example
{
"status": "success",
"recheckAfterSeconds": 10
}