- URL:https://<featurelayer-url>/hasAssets
- 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
Parameter | Details |
---|---|
assetHashes | An array of SHA256 hashes associated with the assets that the client is requesting information about. Syntax
Example
|
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:
https://machine.domain.com/webadaptor/rest/services/City_Park_Assets/FeatureServer/0/hasAssets?assetHashes=["6486ee53c8faba18045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd"]&f=pjson
JSON Response syntax
{
"assetHashes": [
"<assetHash>"
]
}
JSON Response example
{
"assetHashes": [
"6486ee53c8faba18045ef29d382f1c8227bde3a25d37f7a62fe0d2259a3a14dd"
]
}