I am trying to implement the following rest endpoint data:
I am thinking it could be a problem with the type of layer that I am calling it? For example, it may need to be ArcGISgraphiclayer instead of FeatureLayer or something like that.
Maybe it is something entirely different, but I can't understand why it is not working.
My code is attached.