Update (Services Properties)

URL:
https://<root>/services/properties/update
Methods:
POST
Version Introduced:
10.9

Description

The update operation modifies the default settings for newly published services. Currently, the only supported property is preferSharedInstances . This property controls whether new, compatible services published from ArcGIS Pro will use shared or dedicated instances.

Request parameters

ParameterDetails

properties

A JSON object that describes each property to be set. Currently, the only supported property is preferSharedInstances . When set to true , compatible services will use shared instances when first published. When set to false , they will use dedicated instances. The default is true .

Example

Use dark colors for code blocksCopy
1
properties={"preferSharedInstances": true}

f

The response format. The default format is html .

Values: html | json | pjson

Example usage

The following is a sample POST request for the update operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
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

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.