HTTP API - string together actions

I want my lights to pulse when they receive a specific command, to inform the user that the command was received. However sending one call to the pulse endpoint and then another to the state endpoint doesn’t make sense, as the first call might make it through, but the second call might fail. Is there a way to combine two or more light transition calls into the same cURL request?

Edit: Nevermind :pensive: