Edit Data Item

Description

Edit an existing dataItem to update its connection information.

Request Parameters

Parameter

Details

item

Description: The JSON representing the data item.

f

Description: The response format. The default response format is html.

Values: html | json

Example Usage

http://server:port/arcgis/admin/data/items/enterpriseDatabases/myDatabase/edit
	item={
  "path": "/enterpriseDatabases/myDatabase",
  "type": "egdb",
  "id": "b373de14-f2f0-4bbc-89cc-06d978537d25",
  "totalRefCount": 0,
  "info": {
    "connectionString": "ENCRYPTED_PASSWORD=22e686870727253784e7559513952413d3d2a00;SERVER=SampleDb;INSTANCE=sde:sqlserver:SampleDb;DBCLIENT=sqlserver;DB_CONNECTION_PROPERTIES=SampleDb;DATABASE=gisdata;USER=map;AUTHENTICATION_MODE=DBMS",
    "isManaged": false,
    "dataStoreConnectionType": "shared"
  }
}

JSON Response Syntax

{
	"status": "success" | "error",
	"messages": ["message1", "message2"],
	"code": <errorcode>
}

JSON Response Example

{"status": "success"}

3/3/2017