I have a table of data and I can create , update and delete rows. I have apis to do these operations. The following steps happen

1. I create a row and send a create request to server.
2. I update some values in the row and send an update request before the response of create has come.
3. In server since the create row has not completed, the update cannot continue.

How do I handle this situation? Should I make an update request only after success of create? Should I queue the request on server? 

If the create fails, should I remove the rows on client? or should I retry the request? Need help on how to deal with this. Thanks