Frappe API commit on second call

We use Rest API & RPC very extensively. I have a scenario where i want to update a doc using the API call but commit the update using the second API call. This update is part of a transaction which spans multiple systems.

Is there a way to achieve this?