Hello, I've written a python script that calls the "Enable subnetwork controller" rest api and supposedly it will update a bunch of subnetwork controllers for me.
For the parameters, I have called another api specifying the link to my server's utility network feature server query. From that I have acquired the needed fields which is used for the parameters for the "Enable subnetwork controller" rest api.
The fields I have included in "Enable subnetwork controller" are networkSourceId, featureGlobalId, terminalID, subnetworkControllerName & tierName.
I have only included the required fields, after running the python script, the results returned this result:
{
"success": false,
"error": {
"extendedCode": -2147219885,
"message": "An expected Field was not found or could not be retrieved properly.",
"details": [
]
}
}
Here is the link to the Arcgis Developer rest api:
https://developers.arcgis.com/rest/services-reference/enterprise/enablesubnetworkcontroller-utility-network-server-.htm