Signal entry for partial close?

How does one send an http get to the system to partially close an order?

Example - open an order 5 lots in size, then close 3 of them and let the other 2 lots ride.

You would issue a signal to BTO 5 (buy to open)

and then STC 3 (sell to close)