- URL:https://<items-url>/edit(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.4
Description
This operation edits the connection information for an existing dataItem.
Request parameters
Parameter | Details |
---|---|
item | The JSON representing the data item. |
f | The response format. The default response format is html. Values: html | json | pjson |
Example usage
Below is a sample POST request for edit, formatted for readability:
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=json
JSON Response example
{"status": "success"}