/api/storage-translocation/edit/ is an operation for editing an already existing operation, the type of operation cannot be changed, it is impossible to change posting for sale, only delete the current record and add posting.
If you want to sell goods by api, then this cannot be done either, since shipment is performed only as part of an order (process), that is, you can set up a sale in an order on the status and switch the order to the desired status using api.
But if you just want to change the rest of the goods, then you need to use the /api/storage-translocation/product/updatebalance/ method
This method allows you to credit the goods, write off + equalize the balance - that is, make it the way you pass in the request.
Described here
https://crm-onebox.com/ru/api/storage/