I am trying to use the ArcGIS Rest API for Server Administration to replace an existing service.
As a preliminary attempt, I tried it from the Admin Directory:
Both are in the same directory (root).
I get the following error:
The error summary in logs is also not very helpful (error code: 7399):
Failed to replace service 'CaliforniaNatural.MapServer' for 'SampleWorldCities.MapServer'.
Can someone tell me the appropriate way of doing this?
P.S: I couldn't find any page for replace service in the REST API Documentation.
Thank You for your time!