Skip To Content
ArcGIS Developers
Dashboard

Validate Data Items

Description

This operation validates that the path (for file shares) or connection string (for databases) for a specific data item is accessible to every server node in the site by checking against the JSON representing the data item, ensuring that the data item can be registered and used successfully within the server's data store.

Validating a data item does not automatically register it for you. You need to explicitly register your data item by invoking the register operation.

Request parameters

ParameterDetails
item

The JSON representing the data item.

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample POST request for the validateDataItem operation, formatted for readability:

POST /context/admin/data/validateDataItem HTTP/1.1
Host: organization.domain.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

item={
  "path": "/fileShares/folder_shared",
  "type": "folder",
  "id": null,
  "clientPath": null,
  "info": {
    "path": "\\\\server\\share_data\\map_data",
    "dataStoreConnectionType": "shared"
  }
}&f=json&token=Mb0ORrkLObNO2Q8FZoUCHHzSMzZi0CbhLHNRYMqqa6URG_ojQJF3rNsJAfRB23MyCrLwSmuaHPUo4AEIrUuoH1-4Ot5xh4565FtlQahXAhK2C7Sy0oydZhBwD8KdFSnVlnLr-e9uI5ovSWZ2lGNn9SwoV2MPMzeAh_5r-q-wgwF8DTT_nhuCXJGkMRy-48jjGS2aN5FI18STHZ8RAuKxGasH90SI3C7njZzlGCUrY5m6BDhCMsdpZA14GwNX8Cis

JSON Response example

{"status": "success"}