- 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
Parameter | Details |
---|---|
| The JSON representing the data item. |
| The response format. The default response format is Values: |
Example usage
The following is a sample POST request for the edit
operation:
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
{"status": "success"}