I want that if an order fails the other fails too, is that possible?

Example: What I want to do achieve is making an order to buy AAPL and BABA in way that If one fails, the other fails too.
Is that possible with Alpaca?
I couldn’t find this action in the documentation.

Thank you for your answers