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-.htmBut 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?
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.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.