I want to do the followings in a row but it seems that composite request cannot do that. Is there a Rest API feature like commit/rollback in database?

1. Insert record to table A and receive record's ID
2. Insert another record which is associated with the ID to table B