Not sure where to ask.... I want to build a applyEdits URL string that updates a single features attribute field?

467
3
03-16-2022 12:42 PM
PaulVepraskas
Occasional Contributor

Not sure where or who to ask.....

I want to build a url string that when fired it updates an attribute for a single Feature.  What I mean is when the url is called the OBJECTID that matches the status of field changes from Open to Close. Example below

https://<URL>/Data_Issues/FeatureServer/0/applyEdits?f=json&edits=[{"updates":[{"attributes":{OBJECT...STATUS:"Close"}}]}]

I want to be able to use this in ArcGIS Online Popups so quickly users can updates status without going thru the edit windows/forms

0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor

Hi @PaulVepraskas,

Quick question about the service, will it be secure?  Meaning, will a user need to access it via a username/password?  If so, the URL will also need to contain a token, which would need to generated dynamically.  

0 Kudos
PaulVepraskas
Occasional Contributor

Nope not secure, lawn mowing data

0 Kudos
JakeSkinner
Esri Esteemed Contributor

@PaulVepraskas I don't believe this will be possible as the applyEdits function is only supported via POST.  You would need additional code, other than just a URL, to apply a POST operation.

0 Kudos