Has Assets (Feature Service/Layer)

URL:
https://<root>/<serviceName>/FeatureServer/<layerId>/hasAssets
Methods:
GET
Version Introduced:
11.1

Description

The hasAssets operation is performed on a feature service layer to determine if an array of asset hashes is included in a service. The response only returns the hashes for assets that are in the service. The hashes returned in the response are a subset of the hashes submitted in the request.

Request parameters

ParameterDetails

assetHashes

An array of SHA256 hashes associated with the assets that the client is requesting information about.

Syntax

Use dark colors for code blocksCopy
1
assetHashes=["<assetHash1>","<assetHash2>"]

Example

Use dark colors for code blocksCopy
1
assetHashes=["]

f

The response format. The default response format is html .

Values: html | json | pjson

Example usage

The following is a sample request for the hasAssets operation:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/rest/services/City_Park_Assets/FeatureServer/0/hasAssets?assetHashes=["6486ee53c8faba18045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd"]&f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
{
  "assetHashes": [
    "<assetHash>"
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
{
  "assetHashes": [
    "6486ee53c8faba18045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd"
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.