Hello!
Thanks for this question. My colleagues offer some thoughts below however what you're looking for is actually possible today with existing functionality. I am not sure this is covered in training courses so I wanted to make sure to comment here. Also, please in the future feel free to engage the Kepware Solutions Consulting team directly about questions like this by writing to presales.support@kepware.com, or opening a support ticket and marking the case as Presales.
After installation, you can enable the Configuration API by editing "settings.ini" within C:\ProgramData\PTC\ThingWorx Kepware Server\V6 directory. If using a Kepware-branded product (KEPServerEX), the directory is \Kepware\KEPServerEX\V6. You can edit the following entries to enable / configure the API:
[Config API Service]
AllowInsecureCommunications = 1
CORSOrigins =
Enabled = 1
EnableDocumentation = 1
Port = 57412
SSLPort = 57512
SSLProtocolVersion = 4
VerboseTransactionLogging = 0
You can of course edit this file using any scripting environment that supports file manipulation. I would recommend the following workflow for your script:
1- call the Service Control Manager to stop the Kepware runtime service
2- edit settings.ini
3- call the Service Control Manager to start the Kepware runtime service
Please feel free to post here or write into presales.support@kepware.com if any other questions.
Thanks,
Sam