HOW TO

Update domain split and merge policies using ArcGIS REST API in the Enterprise portal or ArcGIS Online

Last Published: May 5, 2025

Summary

Each attribute domain includes split and merge policies that determine how attribute values are assigned when features are split or merged. These policies are currently configurable only in ArcGIS Pro. Modifying them in the ArcGIS Enterprise portal or ArcGIS Online requires downloading the feature service’s file geodatabase, updating the policies in ArcGIS Pro, and overwriting the feature service with the updated geodatabase.

Alternatively, the domain's split and merge policies can be updated by editing the service definition. This article describes the workflow to update the domain's split and merge policies using the ArcGIS REST API in the ArcGIS Enterprise portal or ArcGIS Online. In the example, the split policy is set to duplicate, and the merge policy is set to use the domain’s default value.

Procedure

In the ArcGIS Enterprise portal

  1. Log in to ArcGIS Server Administrator Directory. Refer to ArcGIS Server: Introduction to the ArcGIS Server Administrator Directory for more information.
  2. On the Site Root - / page, for Resources, click services.
  3. On the Folder - / page, click the folder name of the feature service, and click the name of the required service.
  4. On the Service page, for Supported Operations, click edit.
The Service page with the edit option
  1. On the Edit FeatureServer page, in the Service Properties text box, search for the field name where the domains are applied.
  2. Under the domain name listed as "name", add the following split and merge policies. Alternatively, set the splitPolicy property to "esriSPTDefaultValue" to use the default value.
"mergePolicy": "esriMPTDefaultValue",
"splitPolicy": "esriSPTDuplicate",
The updated splitPolicy and mergePolicy properties in the Service Properties text box
  1. For Format, select JSON from the drop-down list.
  2. Click Save Edits.

In ArcGIS Online

  1. In ArcGIS Online, open the item details page of the feature layer.
  2. On the item details page, next to URL, click View to open the ArcGIS REST Services Directory window.
  3. In the ArcGIS REST Services Directory window, click Admin.
  4. Under Layers, select the root layer.
  5. At the bottom of the page, for Supported Operations, click Update Definition.
The Update Definition option
  1. In the Update Layer Definition text box, search for "lastEditDate" and replace the value with "".
The modified lastEditDate value in the Update Layer Definition text box
  1. Scroll to the field properties and search for the field name where the domains are applied.
  2. Under the domain name listed as "name", add the following split and merge policies. Alternatively, set the splitPolicy property to "esriSPTDefaultValue" to use the default value.
"mergePolicy": "esriMPTDefaultValue",
"splitPolicy": "esriSPTDuplicate",
The updated splitPolicy and mergePolicy properties in the Update Layer Definition text box
  1. For Format, select JSON from the drop-down list.
  2. Click Update Layer Definition.
  3. Click Close to close the ArcGIS REST Services Directory window.

Article ID: 000035637

Software:
  • ArcGIS REST API
  • ArcGIS Online
  • Portal for ArcGIS
  • ArcGIS Enterprise

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Related Information

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options