“cmd.push_undo” stores the current conformations of objects in the selection onto their individual undo rings.
def push_undo(selection, state=0):
push_undo | api