I am trying to publish a feature service to agol over the rest api (java command line application) using the "publish" end point. I am using a JSON featurecollection.
When I make the call to publish, the result in agol is two feature services with the same name.
One of the feature services has a layer, and this layer is always inaccessible, and the other featureservice has no layer and is just broken. I have checked the featurecollection json, and it looks fine. I do not get any error back from the rest response. Is there anyway i can look at some log files from agol to see what is going wrong?
Also, is this the wrong approach? I was thinking that maybe I should use the createService end point, and then maybe the addFeatures end point, but i don't see an endpoint for creating a layer in the service.
Any help would be appreciated.
Cheers,
Jamie