anim.slot_new_for_id
The old text seemed to suggest that an Action Slot can only be created at the moment of assigning the Action to something. That is not the case. The operator just works on the assigned Action, and if none is assigned, there is nothing it can do.
str.format