Converting Existing Intraday Positions to a Super Order Through API

Currently, the Web UI allows users to add a stop-loss and target to an already open position. It would be great if the same functionality could be exposed through the API as well.