Edit Data Item

URL:
https://<root>/data/items/<dataItem>/<childItem>/edit
Methods:
POST
Required Capability:
Access allowed with any authorized privilege
Version Introduced:
10.4

Description

The edit operation edits the connection information for an existing dataItem.

Request parameters

ParameterDetails

item

The JSON representing the data item.

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

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

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
POST /webadaptor/admin/data/items/enterpriseDatabases/myDatabase/edit HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

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"
  }
}&f=pson

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.