Skip To Content
ArcGIS Developer
Dashboard

Update Default Service Properties

Description

This POST-only operation updates the default settings for properties that govern new services published to ArcGIS Server. Performing this operation to change properties will not affect the settings of any existing services in your site. You can use the Edit Service operation to change the settings of a particular service.

Request parameters

ParameterDetails
properties

A JSON object that describes each property to be set. The only available property is:

  • preferSharedInstances: Controls whether new compatible services published from ArcGIS Pro to the server site will use shared or dedicated instances. If set to true, compatible services will use shared instances when first published; if set to false, they will use dedicated instances. Starting at 10.8, this property is true by default for sites that are newly installed. Sites that are upgraded from 10.7 or 10.7.1 will keep their existing setting.

Updating this value completely replaces all previous values. It's important that any changes begin with the current object value and modify any properties to their desired state.

f

The response format. The default response format is html.

Values: html | json | pjson

Response properties

PropertyDetails
status

Indicates the success or failure of the operation.

Example usage

Below is a sample POST request for update:


POST /webadaptor/admin/services/properties/update HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

properties={"preferSharedInstances": true}&f=json

JSON Response example

{"status": "success"}