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

1
assetHashes=["<assetHash1>","<assetHash2>"]

Example

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:

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

JSON Response syntax

1
2
3
4
5
{
  "assetHashes": [
    "<assetHash>"
  ]
}

JSON Response example

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close