Register Data Item
- URL:https://<data-url>/registerItem
(POST only)
- Required Capability:Default administrator role | All authorized privileges
- Version Introduced:10.1
Description
This operation registers a new data item with the server's data store. Before registering the data item, you must validate it and make sure that it is accessible from all the server nodes in your site.
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 registerItem, formatted for readability:
POST /webadaptor/admin/data/registerItem HTTP/1.1
Host: machine.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
item={
"path": "/fileShares/folder_shared",
"type": "folder",
"clientPath": null,
"info": {
"path": "\\\\server\\data\\rest_data",
"dataStoreConnectionType": "shared"
}
}&f=json
JSON Response example
{"status": "success"}