Hi Guys,
I am getting a 500 error on updating the port name on the ruckus ICX switch using API calls.
Response from the API :
{"timestamp":1628163014255,"path":"/switchm/api/v8_1/portSettings/abcd2-db4f-4e54-bea7-c8d7109efrca/","status":500,"error":"Internal Server Error","message":null}
http://docs.ruckuswireless.com/smartzone/5.2.0/switch-management-public-api-reference-guide-520.html#switch-port-settings
I am using the portSettings method mentioned in the above documentation.
Sample code:
$url = 'https://IP/switchm/api/v8_1/portSettings';
$data_array = array(
'portName'=> 'TestName'
);
$url = $url."/$portId/?serviceTicket=$serviceTicketId";
callAPI('PUT', $url, json_encode($data_array));
I am making a curl request using the PUT method.
I am able to fetch the port listing but not able to update the name of any port.
Please suggest.