'/admin/users/{id}/log_out.json' is not working

Ok, so I’ve confirmed I am retrieving a valid user_id from Discourse, 1 in this case…

{
  "id":1,
  "username":"Sean",
...
}

Interestingly, when I send a cURL request to the log_out endpoint for user id 1…

curl -i -sS -X POST https://community.site.com/admin/users/1/log_out.json
-H "Content-Type: multipart/form-data" 
-H "Api-Key: my-api-key" 
-H "Api-Username: Sean" 

…I get a 200 response, suggesting that the user 1 (me) should be logged out of the forum, but when I check, I haven’t actually been logged out - that’s issue one.

Second problem is that sending the same request from my app backend using axios (detailed above) results in a 404…very strange.

Edit:
Issue one is not an issue - the cURL request is successfully logging me out - just need to work out now why the axios post request is giving me 404.