I ended up solving this with further testing. I used an API testing program and found it was able to successfully perform updates. I ran through all the parameters to find out what I had missed, and the answer was specifying the content-type header field in the put request. Once that was added to the script it was able to connect successfully and update the allowed URLs.
... View more