I am trying to use the API to change some of the settings on the members of the network, however when I use the post request I just get an error, but it works fine on get requests. This is my code:
I’m not that familiar with python these days. It’s been a long time since I have used it. My best guess is that your payload isn’t being serialized to JSON properly, but is rather doing a URL encoded form POST which is not supported by the API.
Doing the same thing via curl on the command line works fine:
That worked, thank you so much! Not sure if possible, but it would be nice with an error that says something like “Error, url encode not supported” or something like so
Yeah, I’m not saying the error was wrong or that it shouldn’t have failed, I’m just saying it was hard to find any information about it when googling the error, so it might be an idea to rethink what the error says to make it easier to troubleshoot.
That being said, I have my background in ML not networking, so it might be a very descriptive and good error for the people that understand the networking language, but for me on the outside, it was not very clear.