To change a position on options from long to short or vice versa, the Client should close this position first and then place an order opening a opposite position.
It is not possible to place an order that could right away change the position to an opposite one.