There is an issue when running on Windows and inorder to make it work, we need to start the server with below command.
wso2server.bat -Diot.analytics.host="localhost" -Diot.analytics.https.port="9445" -Dmqtt.broker.host="localhost" -Dmqtt.broker.port="1886" -Diot.core.host="localhost" -Diot.core.https.port="9443" -Diot.keymanager.host="localhost" -Diot.keymanager.https.port="9443" -Diot.gateway.host="localhost" -Diot.gateway.https.port="8243" -Diot.gateway.http.port="8280"
if you are running the above command in an existing pack that you have already
started then you might need to enable UpdateAPI(set true to EnableUpdateApi) property in webapp-publisher-config.xml in core/repository/conf/etc directory.