Hi,
I'm trying to make a rest call to list "all the layers in a feature service" so I can select the right one to upload data to.
I think this is the right API to call:
https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm
But when I assemble a URL to make a query I get HTML back that says:
403 ERROR - The request could not be satisfied.
After creating a feature called newTest3 I get this URL back:
https://services3.arcgis.com/INSTANCE_ID_I_THINK/arcgis/rest/services/newTest3/FeatureServer
Which I assume turns into:
https://services3.arcgis.com/INSTANCE_ID_I_THINK/arcgis/rest/services/newTest3/FeatureServer/query
What am I doing wrong?
Solved! Go to Solution.
Use ?f=pjson, to get json-formatted response. With the URL above, it would be:
https://services3.arcgis.com/INSTANCE_I_THINK/arcgis/rest/services/newTest3/FeatureServer?f=pjson
Use f=html to get result in html
Use ?f=pjson, to get json-formatted response. With the URL above, it would be:
https://services3.arcgis.com/INSTANCE_I_THINK/arcgis/rest/services/newTest3/FeatureServer?f=pjson
Use f=html to get result in html
Thanks all the examples ended with /query. That was my issue.