问题
I was able to get the my_config.json file by doing the provided curl statement and update/save it, but when I PUT it given the requested curl I am receiving a 415 error, unsupported media type. According to the documentation, it's supposed to accept the .json. This is what I'm using: curl -X PUT -u "discovered":"discoverypw" -H “Content-Type: application/json” -d@my_config.json
回答1:
I supposed you are trying to update a configuration. I tried the operation as described at the following page and could not reproduce your problem. I could update my configuration. https://www.ibm.com/watson/developercloud/discovery/api/v1/#replace_configuration
来源:https://stackoverflow.com/questions/44980996/watson-knowledge-studio-integration-with-watson-discovery