- URL:
- https://<root>/services/properties/update
- 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 update operation modifies the default settings for newly published services. Currently, the only supported property is prefer. This property controls whether new, compatible services published from ArcGIS Pro will use shared or dedicated instances.
Request parameters
| Parameter | Details |
|---|---|
| A JSON object that describes each property to be set. Currently, the only supported property is Example |
| The response format. The default format is Values: |
Example usage
The following is a sample POST request for the update operation:
POST /context/admin/services/properties/update HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
properties={"preferSharedInstances": true}&f=pjson&token=s2cDL4j66bSzBgsITfX0MG1hManyUgIV9uYco_kV6UHjHai-oJHDNCAm7SXErmwAgjpMHm_NFlCuFDOzIrm8i-J1Esug479v-Xyr5OhvoZEkZl6ABr9J1vRBJ1-KJcUL2tIKPFqfUi7M0_Lspng9A9jfM-vJIR1FQiTte7K8JTZUVYfcXrbEnfa61iKJAxiMXxI3qslJp0_-p5NWv6pQFKkKp8x4Lz0lW1FlrmrNLxY.JSON Response example
{"status": "success"}