Frontend developer by day, iOS developer by night. Currently working on learning iOS development and my own blog, Mike Decodes, where I'm decoding the tech industry. Come hang out with me on Twitter!
It was my understanding that the body isn't necessarily required but it is common for the PUT request to have one. Putting that aside, a different fix for your problem would be to nullify the body:
It was my understanding that the body isn't necessarily required but it is common for the
PUT
request to have one. Putting that aside, a different fix for your problem would be to nullify the body:Mostly because axios needs to have that parameter set. Alternatively you could use the request config instead of using the
.put()
method.