---
title: "Update Product"
uid: tps-update-product
description: "The updateProduct operation updates properties of a product."
slug: "tps-update-product"
url: "/tps-update-product"
guid: "GUID-FD58CBE0-DF00-4E62-8A77-E3CE2CB98911"
migratedTopicMetadata:
  FTITLE: "TPS Update Product"
  FDESCRIPTION: ""
  FCHANGES: "adding to productVersions object changes per 3111 (original is 2950)"
  FISHRELEASELABEL: ""
  FESRISOFTWARERELEASE: ""
  FESRITAGCLOUD: ""
  FESRIRECREATIONPROCEDURE: ""
  FESRIPRODUCTLIFECYCLE: "11.2 - *"
  CREATED-ON: "20/11/2023 12:06:44"
  FAUTHOR: "jaguirre"
  FSTATUS: "To be reviewed"
  MODIFIED-ON: "20/12/2023 10:24:26"
  VERSION: "3"
  FRESOLUTION: ""
  DOC-LANGUAGE: "en"
  FISHREVCOUNTER: "8"
  ED: "GUID-53A31CE6-212B-48A0-952D-C8BCADF42D04"
  FUSERGROUP: ""
  READ-ACCESS: ""
restInfoMetadata:
  apiPath: /<serviceName>/TopographicProductionServer/updateProduct
  urlSegments:
    - name: <root>
      url: /catalog
    - name: /<serviceName>/TopographicProductionServer/updateProduct
  methods: 
    - get
  sslOnly: 'yes'
  versionIntroduced: '10.9'
  relatedResources:
    - name: Add Product
      url: /tps-add-product
    - name: Generate Product
      url: /tps-generate-product
    - name: Remove Product
      url: /tps-remove-product
  requiredCapability: Requires a Professional or Professional Plus user type account and a Topographic Mapping server extension license.
---

import GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_2680DD44_F03A_444C_86E1_1624AF34BD55 from "./snippets/GUID-0388E43D-C641-4E66-97EE-5C4E932EE3BA/_GUID-2680DD44-F03A-444C-86E1-1624AF34BD55";
import GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_BD0C4EE0_7864_4DD3_9692_AAED8631CB88 from "./snippets/GUID-0388E43D-C641-4E66-97EE-5C4E932EE3BA/_GUID-BD0C4EE0-7864-4DD3-9692-AAED8631CB88";
import GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_4E2CCDCB_0BD8_4893_AEBD_116ED1495B86 from "./snippets/GUID-0388E43D-C641-4E66-97EE-5C4E932EE3BA/_GUID-4E2CCDCB-0BD8-4893-AEBD-116ED1495B86";
import GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 from "./snippets/GUID-0388E43D-C641-4E66-97EE-5C4E932EE3BA/_GUID-65CB945B-3B13-4E4F-A845-64316D75C206";
import GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_BA4E48E6_74EB_4AC7_9327_0229D4E7ECF5 from "./snippets/GUID-0388E43D-C641-4E66-97EE-5C4E932EE3BA/_GUID-BA4E48E6-74EB-4AC7-9327-0229D4E7ECF5";
import GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_6EC27F8A_F9F1_4939_ACF2_E02F31317C79 from "./snippets/GUID-0388E43D-C641-4E66-97EE-5C4E932EE3BA/_GUID-6EC27F8A-F9F1-4939-ACF2-E02F31317C79";

## Description
The `updateProduct` operation updates properties of a map product definition.

## Request parameters
<StyledTable headers={"Parameter,Details"}>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`productName`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_BD0C4EE0_7864_4DD3_9692_AAED8631CB88 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_4E2CCDCB_0BD8_4893_AEBD_116ED1495B86 />
		</StyledTableCell>
	</StyledTableRow>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`description`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			The new description for the product.
		</StyledTableCell>
	</StyledTableRow>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`enabled`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			Enables or disables the product. If a product is disabled, the `generateProduct` operation returns an error for that product.
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_6EC27F8A_F9F1_4939_ACF2_E02F31317C79 />
		</StyledTableCell>
	</StyledTableRow>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`sheetIDField`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			Updates the sheet ID field.
			This is the field name that identifies the area of interest (AOI) for which the map product is generated. It must be a field that exists on the features used to define the AOI.
		</StyledTableCell>
	</StyledTableRow>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`raster`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_BA4E48E6_74EB_4AC7_9327_0229D4E7ECF5 />
		</StyledTableCell>
	</StyledTableRow>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`productVersions`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			Indicates the product version. Use the following syntax to add or update the version:

			```json
			{
			"operation": "<add | update>",
			"versions": [
				{
					"name":"<name of version>",
					"template": "<name of template>"
				},
				...
			]
			}
			```

			Use the following syntax to remove the version:

			```json
			{
			"operation": "remove",
			"versions": [
				"<name of version 1>",
				"<name of version 2>",
				...
			]
			}
			```

			Starting at ArcGIS Enterprise 11.2, additional properties can be applied:

			- `extractionDatabase`—Overwrites the `extractionDatabase` value at the map product level.
			- `operationOverrides`—Overwrites the `parameters` key-value pairs on an existing operation with the provided ID. The ID must match an existing operation.
			- `excludedOperations`—The operations identified by the IDs provided are not run for this map product version.

			The following example uses `operationOverrides` to identify an operation and override its parameter key-value pairs with the ones provided and `excludedOperations` to identify operations that will be excluded:

			```json
			"productVersions": [
			{
				"name": "TRD_4_5",
				"template": "MTM50_TRD45_Layout.pagx"
				"extractionDatabase": "",
				"operationOverrides": [
				{
					"id": "26C62049-A11F-4D5B-BC80-00CF3597555C",
					"parameters": [
					{
						"name": "input_map",
						"value": "Map"
					},
					]
				},
				]
				"excludedOperations": [
				"45B62049-A11F-4D5B-BC80-00CF3597555C",
				...
				]
			}
			]
			```
		</StyledTableCell>
	</StyledTableRow>
	<StyledTableRow>
		<StyledTableCell cellStyle="markdown">
			`ancillaryLayers`
			<GUID_0388E43D_C641_4E66_97EE_5C4E932EE3BA_GUID_65CB945B_3B13_4E4F_A845_64316D75C206 />
		</StyledTableCell>
		<StyledTableCell cellStyle="markdown">
			Indicates the product layers. Use the following format to add or update layers:

			```json
			{
				"operation": "<add | update>",
				"layers": [
				{
					"layer": "<url of layer>",
					"featureClass": "<name of feature class to extract to>",
					"map": "<name of map layer will be inserted into>",
					"layerIndex": "<insertion index of layer>"
				},
				...
				]
			}
			```
			Use the following format to remove the layer:

			```json
			{
				"operation": "remove",
				"layers": [
				{
					"layer": "<url of layer>"
				},
				...
				]
			}
			```
		</StyledTableCell>
	</StyledTableRow>
</StyledTable>

## Example usage
The following URL queries the products in the Topographic Production Service resource by `productName` and updates it:

Request URL and parameters:
```markdown
https://organization.example.com/<context>/rest/services/MTM50/TopographicProductionServer/updateProduct
```

```javascript
productName=MTM50
description=example
enabled=true
sheetIDField=NRN
raster=https://organization.example.com/<context>/rest/service/DEM/ImageServer
productVersions=
{
	"operation": "update",
	"versions": [
		{
			"name": "TRD_4_5",
			"template": "MTM50_TRD45_Layout.pagx"
		},
		...
	]
}
ancillaryLayers=
{
	"operation": "update",
	"layers": [
	{	
		"layer": "https://organization.example.com/<context>/rest/services/SampleWorldCities/MapServer/1",
		"featureClass": "",
		"map": "BaseMap",
		"layerIndex": "0"
	},
	...
	]
}
f=html

```

## JSON Response syntax
The following is the syntax of a response:
```json
{
 "productName": <productName>,
 "success": <true | false>
}
```

## JSON Response example
The following is an example response when a product's properties were successfully updated:
```json
{
 "productName": "MTM50",
 "success": true
}
```

The following is an example of error response when the product fails to update:
```json
{
 "error": {
  "code": -2147211775,
  "message": "Product name not found.",
  "details": [
   
  ]
 }
}
```
