I am using meraki api to create organizations , i am expecting to recieve the response of the post method, instead i recieve a redirect to get, i am using the same template that meraki gives you in the documentation the https://developer.cisco.com/meraki/api-v1/#!create-organization I found here something regarding this https://documentation.meraki.com/General_Administration/Other_Topics/Cisco_Meraki_Dashboard_API Note also that most HTTP libraries and clients will not follow a redirect with an HTTP verb other than GET, and may instead follow the redirect but substitute GET for the HTTP verb. As a result, you may find a redirect on DELETE, POST, or PUT will look as though a GET was requested. To avoid this, first perform a GET on the organization you are working with and store the URL you are working with, then use that URL for subsequent requests (particularly those that modify state). I dont entirely understand what this means, or how i can fix it. This is the template i am using form the meraki page, i am working with node js, also tried with axios and i am getting similar error. var request = require('request'); headers = { "Content-Type": "application/json", "Accept": "application/json", "X-Cisco-Meraki-API-Key": "" } body = `{ "name": "My organization" }`; var options = { method: 'POST', url: 'https://api.meraki.com/api/v1/organizations', headers, body, }; request(options, function (error, response) { if (error) throw new Error(error); console.log(response.body); }); If anyone can provide any help or guidance on how to resolve this it would be great, thanks
... View more