change switch option from put to post request

to be compliant with rest API on non RESTful call.