set switch role

POST https://{{dcnm}}/rest/control/switches/roles

Used to set the desired device's role within the fabric. Can be one or more devices defined within the array.

Please ensure correct serial numbers are used within the array

Request Body

{"0"=>{"serialNumber"=>"9FXMD0HF6F3", "role"=>"leaf"}}

HEADERS

KeyDatatypeRequiredDescription
Dcnm-tokenstring
Content-Typestring